fc2json 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,77 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://services2.arcgis.com/hMIIIBIOpi8Cdgjw/arcgis/rest/services/ubs/FeatureServer/0/query?f=pjson&returnIdsOnly=true&where=1%20%3E%202
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Content-Type:
22
+ - text/plain; charset=utf-8
23
+ Etag:
24
+ - sd1_715512020
25
+ Server:
26
+ - Microsoft-IIS/8.0
27
+ X-Powered-By:
28
+ - ASP.NET
29
+ Access-Control-Allow-Origin:
30
+ - '*'
31
+ Date:
32
+ - Mon, 30 Dec 2013 22:22:05 GMT
33
+ Content-Length:
34
+ - '64'
35
+ body:
36
+ encoding: UTF-8
37
+ string: "{\r\n \"objectIdFieldName\" : \"FID\", \r\n \"objectIds\" : []\r\n}"
38
+ http_version:
39
+ recorded_at: Mon, 30 Dec 2013 22:21:58 GMT
40
+ - request:
41
+ method: get
42
+ uri: http://services2.arcgis.com/hMIIIBIOpi8Cdgjw/arcgis/rest/services/ubs/FeatureServer/0/query?f=pjson&outFields=*&where=FID%20%3E=%20%20AND%20FID%20%3C=%20
43
+ body:
44
+ encoding: US-ASCII
45
+ string: ''
46
+ headers:
47
+ Accept-Encoding:
48
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
49
+ Accept:
50
+ - '*/*'
51
+ User-Agent:
52
+ - Ruby
53
+ response:
54
+ status:
55
+ code: 200
56
+ message: OK
57
+ headers:
58
+ Content-Type:
59
+ - text/plain; charset=utf-8
60
+ Server:
61
+ - Microsoft-IIS/8.0
62
+ X-Powered-By:
63
+ - ASP.NET
64
+ Access-Control-Allow-Origin:
65
+ - '*'
66
+ Date:
67
+ - Mon, 30 Dec 2013 22:21:58 GMT
68
+ Content-Length:
69
+ - '117'
70
+ body:
71
+ encoding: UTF-8
72
+ string: "\r\n{\r\n \"error\" : \r\n {\r\n \"code\" : 400, \r\n \"message\"
73
+ : \"\", \r\n \"details\" : [\r\n \"'where' parameter is invalid\"\r\n
74
+ \ ]\r\n }\r\n}"
75
+ http_version:
76
+ recorded_at: Mon, 30 Dec 2013 22:21:59 GMT
77
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,19 @@
1
+ # encoding: utf-8
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
4
+ require 'rspec'
5
+ require 'fc2json'
6
+ require 'vcr'
7
+
8
+ VCR.configure do |c|
9
+ c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
10
+ c.hook_into :webmock
11
+ end
12
+
13
+ # Requires supporting files with custom matchers and macros, etc,
14
+ # in ./support/ and its subdirectories.
15
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
16
+
17
+ RSpec.configure do |config|
18
+
19
+ end
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fc2json
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Roberto Pepato
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.5.10
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.5.10
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.8.0
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '2.8'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2.8.0
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.8'
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: jeweler
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 1.8.7
68
+ - - "~>"
69
+ - !ruby/object:Gem::Version
70
+ version: '1.8'
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 1.8.7
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '1.8'
81
+ description: fc2json queries, downloads and formats all data from a remote Esri feature
82
+ service, exposing it as json representation
83
+ email: rpepato@gmail.com
84
+ executables: []
85
+ extensions: []
86
+ extra_rdoc_files:
87
+ - LICENSE.txt
88
+ - README.rdoc
89
+ files:
90
+ - ".document"
91
+ - ".rspec"
92
+ - Gemfile
93
+ - Gemfile.lock
94
+ - LICENSE.txt
95
+ - README.rdoc
96
+ - Rakefile
97
+ - VERSION
98
+ - fc2json.gemspec
99
+ - lib/fc2json.rb
100
+ - spec/fc2json_spec.rb
101
+ - spec/fixtures/vcr_cassettes/1000_batch_size.yml
102
+ - spec/fixtures/vcr_cassettes/3000_batch_size.yml
103
+ - spec/fixtures/vcr_cassettes/3_batch_size.yml
104
+ - spec/fixtures/vcr_cassettes/4_batch_size.yml
105
+ - spec/fixtures/vcr_cassettes/6_batch_size.yml
106
+ - spec/fixtures/vcr_cassettes/empty.yml
107
+ - spec/spec_helper.rb
108
+ homepage: http://github.com/rpepato/fc2json
109
+ licenses:
110
+ - MIT
111
+ metadata: {}
112
+ post_install_message:
113
+ rdoc_options: []
114
+ require_paths:
115
+ - lib
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ requirements: []
127
+ rubyforge_project:
128
+ rubygems_version: 2.2.0.rc.1
129
+ signing_key:
130
+ specification_version: 4
131
+ summary: Converts Esri feature services to Json
132
+ test_files: []