eventify 1.2.3 → 1.3.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: d6a8715f09c32ebc7693e119c973b56d0ffec2ff
4
- data.tar.gz: 8cc2893ee85053c81e6e558f078d9ad66a87f837
3
+ metadata.gz: 54a357c8150bdf248706eb2cd11a74d397145c5a
4
+ data.tar.gz: c01fa31f479dcbc3e38f43a0c04529072d6fbdce
5
5
  SHA512:
6
- metadata.gz: cd2cd0feff1c42854ea31d87b166165151b2c21fd79c85d1fcba42072f857c20065018f31502f409b3d1eb3a864646b7b36af8698750267e24e5c639ca89d47a
7
- data.tar.gz: de8fc801a86ce2270f5a9b09f070c4338f8fb103f02ca41463c339a26dcceb7ae4fc7d5432e690b39b6fc1937d9e00609ac3d8c0112d77935fc08950889d2932
6
+ metadata.gz: 46f461a6fdf6b3bc7f21420388405e02e417aa45275fd41e84d237bd4fbbabdd418c4b1ddf573a28e44ee6cf13e29b9ea7d9c221e6b2e234b83a06a834f2f596
7
+ data.tar.gz: 2c9307834b48a0f3043353299611a13c3c44e33aca8bb356d4ebcd7322343aa310aa161bff8e3d61bb9ca3085651a2361ae32356e5ee5c9b996430d33d3c584c
data/README.md CHANGED
@@ -41,7 +41,6 @@ The following providers are currently supported:
41
41
  * [FBI](http://fbi.ee)
42
42
  * [Piletilevi](http://www.piletilevi.ee/)
43
43
  * [Solaris Kino](http://solariskino.ee/)
44
- * [Ticketpro](http://www.ticketpro.ee/)
45
44
 
46
45
  ## Adding New Providers
47
46
 
data/lib/eventify.rb CHANGED
@@ -4,7 +4,6 @@ require File.expand_path("eventify/provider/base", __dir__)
4
4
  require File.expand_path("eventify/provider/fbi", __dir__)
5
5
  require File.expand_path("eventify/provider/piletilevi", __dir__)
6
6
  require File.expand_path("eventify/provider/solaris_kino", __dir__)
7
- require File.expand_path("eventify/provider/ticketpro", __dir__)
8
7
  require File.expand_path("eventify/database", __dir__)
9
8
  require File.expand_path("eventify/mail", __dir__)
10
9
 
@@ -36,7 +35,6 @@ class Eventify
36
35
  def providers
37
36
  @providers ||= [
38
37
  Eventify::Provider::Piletilevi,
39
- Eventify::Provider::Ticketpro,
40
38
  Eventify::Provider::FBI,
41
39
  Eventify::Provider::SolarisKino
42
40
  ]
@@ -1,3 +1,3 @@
1
1
  class Eventify
2
- VERSION = "1.2.3"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -102,9 +102,8 @@ describe Eventify do
102
102
  it "returns all providers" do
103
103
  expected_providers = [
104
104
  Eventify::Provider::Piletilevi,
105
- Eventify::Provider::Ticketpro,
106
- Eventify::Provider::FBI,
107
- Eventify::Provider::SolarisKino
105
+ Eventify::Provider::FBI,
106
+ Eventify::Provider::SolarisKino
108
107
  ]
109
108
  Eventify.new.providers.should == expected_providers
110
109
  end
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarmo Pertman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-07 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple-rss
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mail
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: faraday
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.3'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: webmock
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: yard
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  description: Get notifications about upcoming events from different providers/organizers.
@@ -157,8 +157,8 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - .gitignore
161
- - .travis.yml
160
+ - ".gitignore"
161
+ - ".travis.yml"
162
162
  - Gemfile
163
163
  - Guardfile
164
164
  - LICENSE
@@ -173,7 +173,6 @@ files:
173
173
  - lib/eventify/provider/fbi.rb
174
174
  - lib/eventify/provider/piletilevi.rb
175
175
  - lib/eventify/provider/solaris_kino.rb
176
- - lib/eventify/provider/ticketpro.rb
177
176
  - lib/eventify/version.rb
178
177
  - spec/eventify/configuration_spec.rb
179
178
  - spec/eventify/database_spec.rb
@@ -182,13 +181,11 @@ files:
182
181
  - spec/eventify/provider/fbi_spec.rb
183
182
  - spec/eventify/provider/piletilevi_spec.rb
184
183
  - spec/eventify/provider/solaris_kino_spec.rb
185
- - spec/eventify/provider/ticketpro_spec.rb
186
184
  - spec/eventify_spec.rb
187
185
  - spec/spec_helper.rb
188
186
  - spec/support/fbi.html
189
187
  - spec/support/piletilevi.json
190
188
  - spec/support/solaris_kino.html
191
- - spec/support/ticketpro.xml
192
189
  homepage: https://github.com/jarmo/eventify
193
190
  licenses:
194
191
  - MIT
@@ -199,17 +196,17 @@ require_paths:
199
196
  - lib
200
197
  required_ruby_version: !ruby/object:Gem::Requirement
201
198
  requirements:
202
- - - '>='
199
+ - - ">="
203
200
  - !ruby/object:Gem::Version
204
201
  version: '0'
205
202
  required_rubygems_version: !ruby/object:Gem::Requirement
206
203
  requirements:
207
- - - '>='
204
+ - - ">="
208
205
  - !ruby/object:Gem::Version
209
206
  version: '0'
210
207
  requirements: []
211
208
  rubyforge_project:
212
- rubygems_version: 2.0.7
209
+ rubygems_version: 2.4.5
213
210
  signing_key:
214
211
  specification_version: 4
215
212
  summary: Get notifications about upcoming events from different providers/organizers.
@@ -221,11 +218,9 @@ test_files:
221
218
  - spec/eventify/provider/fbi_spec.rb
222
219
  - spec/eventify/provider/piletilevi_spec.rb
223
220
  - spec/eventify/provider/solaris_kino_spec.rb
224
- - spec/eventify/provider/ticketpro_spec.rb
225
221
  - spec/eventify_spec.rb
226
222
  - spec/spec_helper.rb
227
223
  - spec/support/fbi.html
228
224
  - spec/support/piletilevi.json
229
225
  - spec/support/solaris_kino.html
230
- - spec/support/ticketpro.xml
231
226
  has_rdoc:
@@ -1,21 +0,0 @@
1
- require "simple-rss"
2
- require "open-uri"
3
-
4
- module Eventify::Provider
5
- class Ticketpro < Base
6
- URL = "http://www.ticketpro.ee/jnp/rss/index.xml"
7
-
8
- def initialize(event)
9
- super
10
- @id = @id.gsub(%r{/jnp/(ru|en)/}, "/jnp/")
11
- @link = @link.gsub(%r{/jnp/(ru|en)/}, "/jnp/")
12
- end
13
-
14
- class << self
15
- def fetch
16
- rss = SimpleRSS.parse open(URL)
17
- rss.entries.map { |entry| new id: entry.guid, title: entry.title, link: entry.link, date: entry.pubDate }
18
- end
19
- end
20
- end
21
- end
@@ -1,64 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe Eventify::Provider::Ticketpro do
4
-
5
- context "#initialize" do
6
- it "strips en localization info from id" do
7
- Eventify::Provider::Ticketpro.new(
8
- title: "Danny Malando tantsumuusika orkester ( Holland )",
9
- link: "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html",
10
- date: Time.parse("Fri, 31 May 2013 14:29:07 +0200"),
11
- id: "http://www.ticketpro.ee/jnp/en/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
12
- ).id.should == "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
13
- end
14
-
15
- it "strips ru localization info from id" do
16
- Eventify::Provider::Ticketpro.new(
17
- title: "Danny Malando tantsumuusika orkester ( Holland )",
18
- link: "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html",
19
- date: Time.parse("Fri, 31 May 2013 14:29:07 +0200"),
20
- id: "http://www.ticketpro.ee/jnp/ru/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
21
- ).id.should == "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
22
- end
23
-
24
- it "strips en localization info from link" do
25
- Eventify::Provider::Ticketpro.new(
26
- title: "Danny Malando tantsumuusika orkester ( Holland )",
27
- link: "http://www.ticketpro.ee/jnp/en/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html",
28
- date: Time.parse("Fri, 31 May 2013 14:29:07 +0200"),
29
- id: "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
30
- ).link.should == "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
31
- end
32
-
33
- it "strips ru localization info from link" do
34
- Eventify::Provider::Ticketpro.new(
35
- title: "Danny Malando tantsumuusika orkester ( Holland )",
36
- link: "http://www.ticketpro.ee/jnp/ru/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html",
37
- date: Time.parse("Fri, 31 May 2013 14:29:07 +0200"),
38
- id: "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
39
- ).link.should == "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
40
- end
41
- end
42
-
43
- context "#fetch" do
44
- it "fetches events" do
45
- stub_request(:get, Eventify::Provider::Ticketpro::URL).to_return(body: File.read(File.expand_path("../../support/ticketpro.xml", __dir__)))
46
-
47
- events = Eventify::Provider::Ticketpro.fetch
48
- events.should == [
49
- Eventify::Provider::Ticketpro.new(
50
- title: "KGB teater-kohvik-muuseum",
51
- link: "http://www.ticketpro.ee/jnp/theatre/1080200-kgb-teater-kohvik-muuseum.html",
52
- date: Time.parse("Mon, 06 May 2013 09:33:26 +0200"),
53
- id: "http://www.ticketpro.ee/jnp/theatre/1080200-kgb-teater-kohvik-muuseum.html"
54
- ),
55
- Eventify::Provider::Ticketpro.new(
56
- title: "Danny Malando tantsumuusika orkester ( Holland )",
57
- link: "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html",
58
- date: Time.parse("Fri, 31 May 2013 14:29:07 +0200"),
59
- id: "http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html"
60
- )
61
- ]
62
- end
63
- end
64
- end
@@ -1,38 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <rss version="2.0">
3
- <channel>
4
- <title>Ticketpro - Sinu pilet meelelahutusmaailma</title>
5
- <link>http://www.ticketpro.ee/jnp/home/index.html</link>
6
- <description>Eesti</description>
7
- <language>ee</language>
8
- <copyright>Copyright 2008, ET NETERA a.s.</copyright>
9
- <managingEditor>support@support.etnetera.cz</managingEditor>
10
- <webMaster>webmaster@etnetera.cz</webMaster>
11
- <lastBuildDate>Fri, 27 Dec 2013 21:02:05 +0100</lastBuildDate>
12
- <image>
13
- <title>Ticketpro - Sinu pilet meelelahutusmaailma - Eesti</title>
14
- <url>http://www.ticketpro.ee/public/44/75/7f/98259_50563_logo_ee2.gif</url>
15
- <link>http://www.ticketpro.ee/jnp/home/index.html</link>
16
- <width>142</width>
17
- <height>68</height>
18
- <description>Eesti</description>
19
- </image>
20
-
21
- <item>
22
- <title><![CDATA[KGB teater-kohvik-muuseum]]></title>
23
- <link>http://www.ticketpro.ee/jnp/theatre/1080200-kgb-teater-kohvik-muuseum.html</link>
24
- <guid>http://www.ticketpro.ee/jnp/theatre/1080200-kgb-teater-kohvik-muuseum.html</guid>
25
- <description><![CDATA[]]></description>
26
- <pubDate>Mon, 06 May 2013 09:33:26 +0200</pubDate>
27
- </item>
28
- <item>
29
- <title><![CDATA[Danny Malando tantsumuusika orkester ( Holland )]]></title>
30
- <link>http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html</link>
31
- <guid>http://www.ticketpro.ee/jnp/music/1095688-danny-malando-tantsumuusika-orkester-holland-.html</guid>
32
- <description><![CDATA[<p>Danny Malando kontsert, mis pidi toimuma Nokia kontserdimajas 28.detsembril 2013. <strong>jääb ära,</strong> <strong>piletid ostetakse tagasi Ticketpro Piletikeskuses Solarises. NB! Raha tagastatakse pangaülekandega, palume kaasa võtta enda arvelduskonto andmed.</strong></p>
33
- <p><strong>E-piletite tagasiostuavaldus saadetakse kõigile ostjatele e-postiga.</strong></p>
34
- ]]></description>
35
- <pubDate>Fri, 31 May 2013 14:29:07 +0200</pubDate>
36
- </item>
37
- </channel>
38
- </rss>