itunes_ingestion 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +17 -11
  2. data/VERSION +1 -1
  3. data/lib/itunes_ingestion.rb +3 -3
  4. metadata +27 -36
data/Rakefile CHANGED
@@ -1,15 +1,21 @@
1
1
  require 'rake'
2
2
 
3
- require 'jeweler'
3
+ begin
4
+ require 'jeweler'
4
5
 
5
- Jeweler::Tasks.new do |s|
6
- s.name = "itunes_ingestion"
7
- s.description = "A simple port of Apple itunes Autoingestion tool to ruby."
8
- s.summary = "A simple port of Apple itunes Autoingestion tool to ruby."
9
- s.authors = ["Francis Chong"]
10
- s.email = "francis@ignition.hk"
11
- s.homepage = "http://github.com/siuying/itunes-auto-ingestion"
12
- s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
13
- s.test_files = FileList["{spec}/**/*"]
14
- s.extra_rdoc_files = [ 'README.rdoc' ]
6
+ Jeweler::Tasks.new do |s|
7
+ s.name = "itunes_ingestion"
8
+ s.description = "A simple port of Apple itunes Autoingestion tool to ruby."
9
+ s.summary = "A simple port of Apple itunes Autoingestion tool to ruby."
10
+ s.authors = ["Francis Chong"]
11
+ s.email = "francis@ignition.hk"
12
+ s.homepage = "http://github.com/siuying/itunes-auto-ingestion"
13
+ s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
14
+ s.test_files = FileList["{spec}/**/*"]
15
+ s.extra_rdoc_files = [ 'README.rdoc' ]
16
+ end
17
+
18
+ Jeweler::GemcutterTasks.new
19
+ rescue LoadError
20
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
15
21
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -52,7 +52,7 @@ class AutoIngestion
52
52
  report = Zlib::GzipReader.new(StringIO.new(@response.body)).read
53
53
  parse_report(report)
54
54
  else
55
- nil
55
+ raise "no data returned from itunes!"
56
56
  end
57
57
  end
58
58
 
@@ -72,8 +72,8 @@ class AutoIngestion
72
72
  :product_type_id => product_type_id.strip,
73
73
  :units => units.to_i,
74
74
  :developer_proceeds => developer_proceeds.to_f,
75
- :begin_date => begin_date.strip,
76
- :end_date => end_date.strip,
75
+ :begin_date => Date.strptime(begin_date.strip, '%d/%m/%Y'),
76
+ :end_date => Date.strptime(end_date.strip, '%d/%m/%Y'),
77
77
  :currency => currency.strip,
78
78
  :country_code => country_code.strip,
79
79
  :currency_of_proceeds => currency_of_proceeds.strip,
metadata CHANGED
@@ -1,71 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: itunes_ingestion
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
4
5
  prerelease:
5
- version: 0.1.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Francis Chong
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-08-26 00:00:00 +08:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: rest-client
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70180928522460 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
24
22
  type: :runtime
25
23
  prerelease: false
26
- version_requirements: *id001
24
+ version_requirements: *70180928522460
27
25
  description: A simple port of Apple itunes Autoingestion tool to ruby.
28
26
  email: francis@ignition.hk
29
27
  executables: []
30
-
31
28
  extensions: []
32
-
33
- extra_rdoc_files:
29
+ extra_rdoc_files:
34
30
  - README.rdoc
35
- files:
31
+ files:
36
32
  - Gemfile
37
33
  - Gemfile.lock
38
34
  - README.rdoc
39
35
  - Rakefile
40
36
  - VERSION
41
37
  - lib/itunes_ingestion.rb
42
- has_rdoc: true
43
38
  homepage: http://github.com/siuying/itunes-auto-ingestion
44
39
  licenses: []
45
-
46
40
  post_install_message:
47
41
  rdoc_options: []
48
-
49
- require_paths:
42
+ require_paths:
50
43
  - lib
51
- required_ruby_version: !ruby/object:Gem::Requirement
44
+ required_ruby_version: !ruby/object:Gem::Requirement
52
45
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
57
- required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
51
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
63
56
  requirements: []
64
-
65
57
  rubyforge_project:
66
- rubygems_version: 1.6.2
58
+ rubygems_version: 1.8.10
67
59
  signing_key:
68
60
  specification_version: 3
69
61
  summary: A simple port of Apple itunes Autoingestion tool to ruby.
70
62
  test_files: []
71
-