feed_monitor 0.0.2 → 0.0.3

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
- SHA1:
3
- metadata.gz: fd83e96d1ad61cdaf1ea16dcf7b191c0c94d76f8
4
- data.tar.gz: 1df35987279702dc5bf973cc02bb37dcd9cf2648
2
+ SHA256:
3
+ metadata.gz: bdc063ee9eb0ee5419766903fd0e865518fe6cbf58032a366ee08e7387dc2f7d
4
+ data.tar.gz: 9912e484a68c84e7e6b9661f56ba7169daec59288d55b55290d225253d9da9d4
5
5
  SHA512:
6
- metadata.gz: 157eaa9392c9dd950d904a0620c133b24c7ca87cc54c8665ca72ff60ba2581eb3e064247a35abb0c9ab820628aeb8274b9e20b1f9450fdd02a4cba7ef3959391
7
- data.tar.gz: d71510a6ca14f0836cbcb762f22addf62612c3cc3432cb6b3b41cf3023bd6ffcecd7b659014527a8f98b233c231f14b434308e1ee54f36bc694122b5d04ce5ec
6
+ metadata.gz: 4ae5ad963b93a007ec2244c498ac4d318dc7fb092812fcc6487bfc1f830cc757d8a7b7604a67c307a73d566755f965b3022971cafcbb219927f09bbfb268131d
7
+ data.tar.gz: 7f4880165d6db3af6a12db1a1ef4e2e0f89c2e27c9cc2d3e76b309e935707ba38ab53a21cf2ef483cb5d8caba87697ef9153ee0fa774631b713b4414ac5d4a89
data/.gitignore CHANGED
@@ -20,3 +20,5 @@ tmp
20
20
  *.o
21
21
  *.a
22
22
  mkmf.log
23
+ test_env
24
+ .DS_Store
@@ -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_development_dependency "bundler", "~> 1.6"
22
- spec.add_development_dependency "rake", "~> 10.1"
21
+ spec.add_development_dependency "bundler", "~> 2.1.4"
22
+ spec.add_development_dependency "rake", "~> 13.0.1"
23
23
 
24
24
  spec.add_runtime_dependency 'dm-core', '~> 1.2', '>= 1.2.0'
25
25
  spec.add_runtime_dependency 'dm-migrations', '~> 1.2', '>= 1.2.0'
26
26
  spec.add_runtime_dependency 'dm-sqlite-adapter', '~> 1.2', '>= 1.2.0'
27
- spec.add_runtime_dependency 'pony', '~> 1.11', '>= 1.11.0'
28
- spec.add_runtime_dependency 'feedjira', '~> 1.4', '>= 1.4.0'
27
+ spec.add_runtime_dependency 'pony', '~> 1.13', '>= 1.13.1'
28
+ spec.add_runtime_dependency 'feedjira', '~> 3.1', '>= 3.1.1'
29
+ spec.add_runtime_dependency 'httparty', '~> 0.18', '>= 0.18.0'
29
30
 
30
31
  end
@@ -3,6 +3,7 @@ require 'feedjira'
3
3
  require 'pony'
4
4
  require 'dm-core'
5
5
  require 'dm-migrations'
6
+ require 'httparty'
6
7
 
7
8
  module FeedMonitor
8
9
  DataMapper.setup(:default, 'sqlite:feedmonitor.db')
@@ -20,7 +21,8 @@ module FeedMonitor
20
21
 
21
22
  def self.watch_feed(url, from_email, to_email)
22
23
  # Fetch the feed
23
- feed = Feedjira::Feed.fetch_and_parse(url)
24
+ xml = HTTParty.get(url).body
25
+ feed = Feedjira.parse(xml)
24
26
 
25
27
  # Make sure it's the correct type of feed
26
28
  return if !feed.is_a?(Feedjira::Parser::Atom) and !feed.is_a?(Feedjira::Parser::RSS)
@@ -1,3 +1,3 @@
1
1
  module FeedMonitor
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feed_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-11 00:00:00.000000000 Z
11
+ date: 2020-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: 2.1.4
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: 2.1.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.1'
33
+ version: 13.0.1
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.1'
40
+ version: 13.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dm-core
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -104,40 +104,60 @@ dependencies:
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: '1.11'
107
+ version: '1.13'
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 1.11.0
110
+ version: 1.13.1
111
111
  type: :runtime
112
112
  prerelease: false
113
113
  version_requirements: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '1.11'
117
+ version: '1.13'
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: 1.11.0
120
+ version: 1.13.1
121
121
  - !ruby/object:Gem::Dependency
122
122
  name: feedjira
123
123
  requirement: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - "~>"
126
126
  - !ruby/object:Gem::Version
127
- version: '1.4'
127
+ version: '3.1'
128
128
  - - ">="
129
129
  - !ruby/object:Gem::Version
130
- version: 1.4.0
130
+ version: 3.1.1
131
131
  type: :runtime
132
132
  prerelease: false
133
133
  version_requirements: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '1.4'
137
+ version: '3.1'
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
- version: 1.4.0
140
+ version: 3.1.1
141
+ - !ruby/object:Gem::Dependency
142
+ name: httparty
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '0.18'
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 0.18.0
151
+ type: :runtime
152
+ prerelease: false
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: '0.18'
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: 0.18.0
141
161
  description: Monitor RSS feeds for updates and send out email alerts for each updated
142
162
  item.
143
163
  email:
@@ -173,8 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
193
  - !ruby/object:Gem::Version
174
194
  version: '0'
175
195
  requirements: []
176
- rubyforge_project:
177
- rubygems_version: 2.4.5
196
+ rubygems_version: 3.1.2
178
197
  signing_key:
179
198
  specification_version: 4
180
199
  summary: Send email alerts for RSS feed updates