Giter Site home page Giter Site logo

gsheets's People

Contributors

andresteingress avatar kktec avatar msgilligan avatar timyates avatar tompson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gsheets's Issues

startRowIndex and maxRows ignored in closure for WorkbookParser.grid()

Calling

parser.grid {
   startRowIndex = 1
   maxRows = 1
   columns name: 'string', date:'date', count: 'int', value:'decimal', active: 'boolean'
}

on a WorkbookParser created on a workbook visiting the parsing_demo.xlsx at top of gsheets sources, will give the 3 lines of sheet instead of only the line with name 'a'.

Strangely enough, all the spock tests where this is tested are in fact green !

I suspect that the closure strategy is maybe modified when running by spock or the this, owner or delegate is different than when run outside of spock...

What I have observed is that if I change the resolveStrategy of the closure passed to grid to be Closure.DELEGATE_FIRST, then I get the expected result, while if I set it to Closure.OWNER_FIRST, the default value for new Closures, then changes to startRowIndex or maxRows are ignored.

Forcing resolveStrategy to Closure.DELETAGE_FIRST before calling closure.call() in WorkbookParser.grid() also behaves correctly, both in spock tests and in normal context.

I can submit a pull request if you want.

Use of cobertura plugin and buildscript causes deprecation warnings

When compiling with Gradle 1.8 the following warnings are output unless the cobertura plugin and buildscript are commented out:

Script 'https://github.com/valkolovos/gradle_cobertura/raw/master/repo/gradle_cobertura/gradle_cobertura/1.0/coberturainit.gradle': line 15
The RepositoryHandler.mavenRepo() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the maven() method instead.
Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read http://gradle.org/docs/current/dsl/org.gradle.api.plugins.ExtraPropertiesExtension.html for information on the replacement for dynamic properties.
Deprecated dynamic property: "coberturaRunner" on "root project 'gsheets'", value: "com.orbitz.gradle.cobe...". 
The reportsDir property has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the reporting.baseDir property instead.
The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.

Support for double-indexing for Worksheets without headers

Some spreadsheets don't have a header row or don't have natural column names that can be assigned. For those cases it would be nice to able to access cells by a row and column index.

Does this feature exist in the code? (I looked through the tests and didn't see it)
If it does exist in the code it should be added to the unit tests, other example code and/or documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.