movies_client 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -1,17 +1,17 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in movies_client.gemspec
4
- gemspec
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in movies_client.gemspec
4
+ gemspec
data/LICENSE.txt CHANGED
@@ -1,22 +1,22 @@
1
- Copyright (c) 2014 jeanbaptistevilain
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2014 jeanbaptistevilain
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,29 +1,29 @@
1
- # MoviesClient
2
-
3
- TODO: Write a gem description
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'movies_client'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install movies_client
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
24
-
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
1
+ # MoviesClient
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'movies_client'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install movies_client
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile CHANGED
@@ -1 +1 @@
1
- require "bundler/gem_tasks"
1
+ require "bundler/gem_tasks"
@@ -1,3 +1,3 @@
1
1
  module MoviesClient
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/movies_client.rb CHANGED
@@ -55,14 +55,14 @@ module MoviesClient
55
55
 
56
56
  case x
57
57
  when 1
58
- if flagline == false
59
- day[:horaire1] = value
60
- elsif flagline == true
58
+ if flagline
61
59
  day[:horaire2] = value
60
+ else
61
+ day[:horaire1] = value
62
62
  end
63
63
  when 2
64
- if flagline == false
65
- day[:film1] = value
64
+ if flagline
65
+ day[:film3] = value
66
66
  unless film.has_key?(value)
67
67
  unless value.nil?
68
68
  if value.include? ':'
@@ -78,8 +78,8 @@ module MoviesClient
78
78
  film.store(value,[value_escaped])
79
79
  end
80
80
  end
81
- elsif flagline == true
82
- day[:film3] = value
81
+ else
82
+ day[:film1] = value
83
83
  unless film.has_key?(value)
84
84
  unless value.nil?
85
85
  if value.include? ':'
@@ -97,12 +97,12 @@ module MoviesClient
97
97
  end
98
98
  end
99
99
  when 3
100
- unless flagline == true
100
+ unless flagline
101
101
  day[:date] = value
102
102
  end
103
103
  when 5
104
- if flagline == false
105
- day[:film2] = value
104
+ if flagline
105
+ day[:film4] = value
106
106
  unless film.has_key?(value)
107
107
  unless value.nil?
108
108
  if value.include? ':'
@@ -118,8 +118,8 @@ module MoviesClient
118
118
  film.store(value,[value_escaped])
119
119
  end
120
120
  end
121
- elsif flagline == true
122
- day[:film4] = value
121
+ else
122
+ day[:film2] = value
123
123
  unless film.has_key?(value)
124
124
  unless value.nil?
125
125
  if value.include? ':'
@@ -141,8 +141,8 @@ module MoviesClient
141
141
  end
142
142
  x += 1
143
143
  end
144
- @daily_schedule.store( key, day)
145
- if flagline == true
144
+ @daily_schedule.store(key, day)
145
+ if flagline
146
146
  day = {}
147
147
  end
148
148
  y +=1
@@ -186,10 +186,10 @@ module MoviesClient
186
186
  when date
187
187
  case x
188
188
  when 1
189
- if flagline == false
190
- day[:horaire1] = value
191
- elsif flagline == true
189
+ if flagline
192
190
  day[:horaire2] = value
191
+ else
192
+ day[:horaire1] = value
193
193
  end
194
194
  when 2
195
195
  if flagline == false
@@ -18,11 +18,11 @@ 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"
21
+ spec.add_development_dependency "bundler", "~> 1.0"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "test-unit"
24
24
  spec.add_development_dependency "shoulda"
25
- spec.add_development_dependency "roo"
26
- spec.add_development_dependency "spreadsheet", "1.0.0"
27
- spec.add_development_dependency "themoviedb"
25
+ spec.add_runtime_dependency "roo"
26
+ spec.add_runtime_dependency "spreadsheet", "1.0.0"
27
+ spec.add_runtime_dependency "themoviedb"
28
28
  end
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: movies_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - jeanbaptistevilain
@@ -9,25 +10,28 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-09-16 00:00:00.000000000 Z
13
+ date: 2014-09-23 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: bundler
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
20
  - - ~>
19
21
  - !ruby/object:Gem::Version
20
- version: '1.6'
22
+ version: '1.0'
21
23
  type: :development
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
28
  - - ~>
26
29
  - !ruby/object:Gem::Version
27
- version: '1.6'
30
+ version: '1.0'
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: rake
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
36
  - - ! '>='
33
37
  - !ruby/object:Gem::Version
@@ -35,6 +39,7 @@ dependencies:
35
39
  type: :development
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
44
  - - ! '>='
40
45
  - !ruby/object:Gem::Version
@@ -42,6 +47,7 @@ dependencies:
42
47
  - !ruby/object:Gem::Dependency
43
48
  name: test-unit
44
49
  requirement: !ruby/object:Gem::Requirement
50
+ none: false
45
51
  requirements:
46
52
  - - ! '>='
47
53
  - !ruby/object:Gem::Version
@@ -49,6 +55,7 @@ dependencies:
49
55
  type: :development
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
52
59
  requirements:
53
60
  - - ! '>='
54
61
  - !ruby/object:Gem::Version
@@ -56,6 +63,7 @@ dependencies:
56
63
  - !ruby/object:Gem::Dependency
57
64
  name: shoulda
58
65
  requirement: !ruby/object:Gem::Requirement
66
+ none: false
59
67
  requirements:
60
68
  - - ! '>='
61
69
  - !ruby/object:Gem::Version
@@ -63,6 +71,7 @@ dependencies:
63
71
  type: :development
64
72
  prerelease: false
65
73
  version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
66
75
  requirements:
67
76
  - - ! '>='
68
77
  - !ruby/object:Gem::Version
@@ -70,13 +79,15 @@ dependencies:
70
79
  - !ruby/object:Gem::Dependency
71
80
  name: roo
72
81
  requirement: !ruby/object:Gem::Requirement
82
+ none: false
73
83
  requirements:
74
84
  - - ! '>='
75
85
  - !ruby/object:Gem::Version
76
86
  version: '0'
77
- type: :development
87
+ type: :runtime
78
88
  prerelease: false
79
89
  version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
80
91
  requirements:
81
92
  - - ! '>='
82
93
  - !ruby/object:Gem::Version
@@ -84,13 +95,15 @@ dependencies:
84
95
  - !ruby/object:Gem::Dependency
85
96
  name: spreadsheet
86
97
  requirement: !ruby/object:Gem::Requirement
98
+ none: false
87
99
  requirements:
88
100
  - - '='
89
101
  - !ruby/object:Gem::Version
90
102
  version: 1.0.0
91
- type: :development
103
+ type: :runtime
92
104
  prerelease: false
93
105
  version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
94
107
  requirements:
95
108
  - - '='
96
109
  - !ruby/object:Gem::Version
@@ -98,13 +111,15 @@ dependencies:
98
111
  - !ruby/object:Gem::Dependency
99
112
  name: themoviedb
100
113
  requirement: !ruby/object:Gem::Requirement
114
+ none: false
101
115
  requirements:
102
116
  - - ! '>='
103
117
  - !ruby/object:Gem::Version
104
118
  version: '0'
105
- type: :development
119
+ type: :runtime
106
120
  prerelease: false
107
121
  version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
108
123
  requirements:
109
124
  - - ! '>='
110
125
  - !ruby/object:Gem::Version
@@ -134,26 +149,27 @@ files:
134
149
  homepage: https://github.com/jeanbaptistevilain/movies_client
135
150
  licenses:
136
151
  - MIT
137
- metadata: {}
138
152
  post_install_message:
139
153
  rdoc_options: []
140
154
  require_paths:
141
155
  - lib
142
156
  required_ruby_version: !ruby/object:Gem::Requirement
157
+ none: false
143
158
  requirements:
144
159
  - - ! '>='
145
160
  - !ruby/object:Gem::Version
146
161
  version: '0'
147
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
+ none: false
148
164
  requirements:
149
165
  - - ! '>='
150
166
  - !ruby/object:Gem::Version
151
167
  version: '0'
152
168
  requirements: []
153
169
  rubyforge_project:
154
- rubygems_version: 2.4.1
170
+ rubygems_version: 1.8.24
155
171
  signing_key:
156
- specification_version: 4
172
+ specification_version: 3
157
173
  summary: Parse ods file with roo, get information about movie from the TMDB API
158
174
  test_files:
159
175
  - test/movies_client_test.rb
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTAyYzk3NWI4Y2ZjNWEwMDdmN2M0ZWEwODg0NDdmNGQ2MDAzNzkyMQ==
5
- data.tar.gz: !binary |-
6
- ZThhMTUxOGQ1YmY4MDQ5ZmRmNTQ2ZDdjYmUyMTdhMGIwNTA4NjRjNw==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- ZDg4NjNhNDk4YjdiNmQ0OWQ2ZjFlYTU0MzQ2ZmFlYzRiNmVlOTBkMDBmNjk0
10
- OTNmMDMxNThjYWYwZTg0OTFmMWQ5NDY1NjIzODQyMzc2MGNiYjg1Zjc4ZmU1
11
- MGE2OGNlMzhkNmQ5NGIxNzI2NGM0ZWNiZDkzNDFmOTZhMDA1ZDM=
12
- data.tar.gz: !binary |-
13
- NGE2ODQyNDRjNDQ2NjgzNGFjNjQyZDdhOTlmZWJlZDQzZjE3NmY3MGNkMTNl
14
- NTM0N2JjNWZhOTU2OTVjNDRhMzJjMWQzYTQ4ZWZkODM1NWI1OTBkMzNiOWNh
15
- MmYyMjM1ZGI1ZGRiYTVkYWJmMjc2NzQ2NTc4OTdhZWM1YWFhYTY=