machinereading 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c40b0f9f66fb65fce3b8908d17ee535c90be70f
4
- data.tar.gz: 670a85b752e0b3666565eef5944dcca2f1f5d746
3
+ metadata.gz: f36eb54546fe1aea979088165357733ed425b58b
4
+ data.tar.gz: 0c6d11574c78ab40052766d9942ef0f5b38dfbee
5
5
  SHA512:
6
- metadata.gz: de1b058178ee3f7ce953591b5e5f2f1d83fc82a867426828e7ab7f95c602c163f4bee418bd9ba4eff8af0a8e76a930d4670d336090bef8dd4aa1507faaad44c6
7
- data.tar.gz: fab173e5503728b2578f86ee2629b4da0a2db794a1d5e06f2f98c36309492e2d7dab221b748f4ad74c1385512a6aa665d1808109492612a1fdb1e15496c4ceb6
6
+ metadata.gz: b0d7fd8b9077f064318cbff98252ef3dc2232de4b767ca89aea8125ad3743065e3449456a1e3e0c8d67a29dd12e04c4c11ba9d967dbed01f3b669badce77d3bb
7
+ data.tar.gz: 408c338f43b6cba9dc0dfbe81f329f22680069c07595b13f10c37c1f485843de5ca831175b925530ffcabd9fb5af5d4f049b8cbb009211ef297bd000d91d2c80
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # [![Ruby Gem Icon](https://raw.githubusercontent.com/zenkay/machinereading-ruby/master/rubygem.png)](https://rubygems.org/gems/machinereading) MachineReading Ruby Gem
2
2
 
3
- [![Code Climate](https://codeclimate.com/github/zenkay/machinereading-ruby/badges/gpa.svg)](https://codeclimate.com/github/zenkay/machinereading-ruby) [![Travis CI](https://travis-ci.org/zenkay/machinereading-ruby.svg?branch=master)](https://travis-ci.org/zenkay/machinereading-ruby) [![Gem Version](https://badge.fury.io/rb/machinereading.svg)](http://badge.fury.io/rb/machinereading)
3
+ [![Code Climate](https://codeclimate.com/github/zenkay/machinereading-ruby/badges/gpa.svg)](https://codeclimate.com/github/zenkay/machinereading-ruby) [![Travis CI](https://travis-ci.org/zenkay/machinereading-ruby.svg?branch=master)](https://travis-ci.org/zenkay/machinereading-ruby) [![Gem Version](https://badge.fury.io/rb/machinereading.svg)](http://badge.fury.io/rb/machinereading) [![Coverage Status](https://coveralls.io/repos/zenkay/machinereading-ruby/badge.png)](https://coveralls.io/r/zenkay/machinereading-ruby)
4
4
 
5
- Ruby gem for interaction with Damantic's [Machinereading](http://www.machinereading.com) APIs.
5
+ Ruby gem for interaction with Damantic's [MachineReading](http://www.machinereading.com) APIs.
6
6
 
7
7
  ## Installation
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Machinereading
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Machinereading::VERSION
9
9
  spec.authors = ["Andrea Mostosi"]
10
10
  spec.email = ["andrea.mostosi@zenkay.net"]
11
- spec.summary = %q{Gem for machinereading.com}
12
- spec.description = %q{Gem for machinereading.com}
13
- spec.homepage = ""
11
+ spec.summary = %q{MachineReading Ruby Gem}
12
+ spec.description = %q{Ruby gem for interaction with Damantic's MachineReading APIs}
13
+ spec.homepage = "https://github.com/zenkay/machinereading-ruby"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -18,13 +18,14 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "faraday", "~> 0.9.0"
22
- spec.add_dependency "faraday_middleware", "~> 0.9.1"
21
+ spec.add_dependency "faraday", '~> 0.9', '>= 0.9.0'
22
+ spec.add_dependency "faraday_middleware", '~> 0.9', '>= 0.9.1'
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.6"
25
- spec.add_development_dependency "rspec"
26
- spec.add_development_dependency "rake"
27
- spec.add_development_dependency "vcr"
28
- spec.add_development_dependency "webmock"
29
- spec.add_development_dependency "simplecov"
25
+ spec.add_development_dependency "rspec", "~> 2.12"
26
+ spec.add_development_dependency "rake", "~> 10.1"
27
+ spec.add_development_dependency "vcr", "~> 2.4"
28
+ spec.add_development_dependency "webmock", "~> 1.17"
29
+ spec.add_development_dependency "simplecov", "~> 0.8"
30
+ spec.add_development_dependency "coveralls", "~> 0.7"
30
31
  end
data/spec/element_spec.rb CHANGED
@@ -119,8 +119,7 @@ describe Machinereading::Element, vcr: vcr_options do
119
119
  c.endpoint = "not-an-url-endpoint"
120
120
  end
121
121
  element = Machinereading::Element.new(@sample_content, @sample_content_lang)
122
- # raise Machinereading::BadResponse
123
- expect { element.tokenizer }.to raise_error
122
+ expect { element.tokenizer }.to raise_error(Machinereading::BadResponse)
124
123
  end
125
124
 
126
125
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  require 'simplecov'
2
2
  SimpleCov.start
3
3
 
4
+ require 'coveralls'
5
+ Coveralls.wear!
6
+
4
7
  require "machinereading"
5
8
  require 'vcr'
6
9
 
metadata CHANGED
@@ -1,20 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machinereading
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Mostosi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-25 00:00:00.000000000 Z
11
+ date: 2014-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 0.9.0
20
23
  type: :runtime
@@ -22,6 +25,9 @@ dependencies:
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.9'
30
+ - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 0.9.0
27
33
  - !ruby/object:Gem::Dependency
@@ -29,6 +35,9 @@ dependencies:
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.9'
40
+ - - ">="
32
41
  - !ruby/object:Gem::Version
33
42
  version: 0.9.1
34
43
  type: :runtime
@@ -36,6 +45,9 @@ dependencies:
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.9'
50
+ - - ">="
39
51
  - !ruby/object:Gem::Version
40
52
  version: 0.9.1
41
53
  - !ruby/object:Gem::Dependency
@@ -56,73 +68,87 @@ dependencies:
56
68
  name: rspec
57
69
  requirement: !ruby/object:Gem::Requirement
58
70
  requirements:
59
- - - ">="
71
+ - - "~>"
60
72
  - !ruby/object:Gem::Version
61
- version: '0'
73
+ version: '2.12'
62
74
  type: :development
63
75
  prerelease: false
64
76
  version_requirements: !ruby/object:Gem::Requirement
65
77
  requirements:
66
- - - ">="
78
+ - - "~>"
67
79
  - !ruby/object:Gem::Version
68
- version: '0'
80
+ version: '2.12'
69
81
  - !ruby/object:Gem::Dependency
70
82
  name: rake
71
83
  requirement: !ruby/object:Gem::Requirement
72
84
  requirements:
73
- - - ">="
85
+ - - "~>"
74
86
  - !ruby/object:Gem::Version
75
- version: '0'
87
+ version: '10.1'
76
88
  type: :development
77
89
  prerelease: false
78
90
  version_requirements: !ruby/object:Gem::Requirement
79
91
  requirements:
80
- - - ">="
92
+ - - "~>"
81
93
  - !ruby/object:Gem::Version
82
- version: '0'
94
+ version: '10.1'
83
95
  - !ruby/object:Gem::Dependency
84
96
  name: vcr
85
97
  requirement: !ruby/object:Gem::Requirement
86
98
  requirements:
87
- - - ">="
99
+ - - "~>"
88
100
  - !ruby/object:Gem::Version
89
- version: '0'
101
+ version: '2.4'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
93
105
  requirements:
94
- - - ">="
106
+ - - "~>"
95
107
  - !ruby/object:Gem::Version
96
- version: '0'
108
+ version: '2.4'
97
109
  - !ruby/object:Gem::Dependency
98
110
  name: webmock
99
111
  requirement: !ruby/object:Gem::Requirement
100
112
  requirements:
101
- - - ">="
113
+ - - "~>"
102
114
  - !ruby/object:Gem::Version
103
- version: '0'
115
+ version: '1.17'
104
116
  type: :development
105
117
  prerelease: false
106
118
  version_requirements: !ruby/object:Gem::Requirement
107
119
  requirements:
108
- - - ">="
120
+ - - "~>"
109
121
  - !ruby/object:Gem::Version
110
- version: '0'
122
+ version: '1.17'
111
123
  - !ruby/object:Gem::Dependency
112
124
  name: simplecov
113
125
  requirement: !ruby/object:Gem::Requirement
114
126
  requirements:
115
- - - ">="
127
+ - - "~>"
116
128
  - !ruby/object:Gem::Version
117
- version: '0'
129
+ version: '0.8'
118
130
  type: :development
119
131
  prerelease: false
120
132
  version_requirements: !ruby/object:Gem::Requirement
121
133
  requirements:
122
- - - ">="
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: '0.8'
137
+ - !ruby/object:Gem::Dependency
138
+ name: coveralls
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: '0.7'
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
123
149
  - !ruby/object:Gem::Version
124
- version: '0'
125
- description: Gem for machinereading.com
150
+ version: '0.7'
151
+ description: Ruby gem for interaction with Damantic's MachineReading APIs
126
152
  email:
127
153
  - andrea.mostosi@zenkay.net
128
154
  executables: []
@@ -143,7 +169,7 @@ files:
143
169
  - spec/cassettes/machinereading_element.yml
144
170
  - spec/element_spec.rb
145
171
  - spec/spec_helper.rb
146
- homepage: ''
172
+ homepage: https://github.com/zenkay/machinereading-ruby
147
173
  licenses:
148
174
  - MIT
149
175
  metadata: {}
@@ -166,7 +192,7 @@ rubyforge_project:
166
192
  rubygems_version: 2.2.2
167
193
  signing_key:
168
194
  specification_version: 4
169
- summary: Gem for machinereading.com
195
+ summary: MachineReading Ruby Gem
170
196
  test_files:
171
197
  - spec/cassettes/machinereading_element.yml
172
198
  - spec/element_spec.rb