ricotta 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e192ab5cc2c5b3d3558632e6a0e93c0153ae3255
4
+ data.tar.gz: 2c57f276d83c1fa432f7aa655dcc2bd13720155b
5
+ SHA512:
6
+ metadata.gz: 383a7118822156d3c5d784bc0f73889abd397c9933995e9450a58cb906b67d0b45f3bd01aa0bd7d0c54a43b9d03b45a4a1a7a5b9dad7dd34941eb18304c6c80a
7
+ data.tar.gz: 602bb78e5bac08c9b3c6a27ae3b721c849e42fcfc7395e366fd5be5ebcc912d34545a5f5c4361fdb6732816b5aed815b48355a70483f30d72a2d186333f40a3f
@@ -32,8 +32,29 @@ command :'install:xcode' do |c|
32
32
  determine_language! unless @language = options.language
33
33
 
34
34
  unless @resource_path = options.lproj_dir
35
- resource_dir_lookup = Dir.glob('**/*.lproj').first
36
- @resource_path = File.dirname(resource_dir_lookup) if resource_dir_lookup
35
+ resource_dir_lookup = Dir.glob('**/*.lproj')
36
+
37
+ if resource_dir_lookup
38
+
39
+ dir_options = Set.new
40
+ resource_dir_lookup.each do |choice|
41
+ dir_options.add File.dirname(choice)
42
+ end
43
+
44
+ if dir_options.count > 1
45
+
46
+ none_option = 'Manual Entry'
47
+ say_warning "Multiple .lproj destinations found. To avoid this in the future add a lproj_dir value in your project .ricottarc file."
48
+ resource_dir_lookup = choose("Choose .lproj destination?", *dir_options, none_option)
49
+
50
+ if resource_dir_lookup.eql?(none_option)
51
+ resource_dir_lookup = nil
52
+ end
53
+ @resource_path = resource_dir_lookup
54
+ else
55
+ @resource_path = dir_options.first
56
+ end
57
+ end
37
58
  end
38
59
 
39
60
  determine_resource_path! unless @resource_path
data/lib/ricotta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Ricotta
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
4
4
 
5
5
  require 'ricotta/fetcher'
data/lib/ricotta.rb~ ADDED
@@ -0,0 +1,6 @@
1
+ module Ricotta
2
+ VERSION = '0.0.1'
3
+ end
4
+
5
+ require 'ricotta/fetcher'
6
+ require 'ricotta/configuration'
data/ricotta-0.0.1.gem ADDED
Binary file
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ricotta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Erik Sundin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-24 00:00:00.000000000 Z
11
+ date: 2013-07-30 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: commander
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: faraday
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: faraday_middleware
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -106,33 +95,34 @@ files:
106
95
  - ./lib/ricotta/configuration.rb
107
96
  - ./lib/ricotta/fetcher.rb
108
97
  - ./lib/ricotta.rb
98
+ - ./lib/ricotta.rb~
109
99
  - ./LICENSE
110
100
  - ./Rakefile
111
101
  - ./README.md
102
+ - ./ricotta-0.0.1.gem
112
103
  - ./ricotta.gemspec
113
104
  - bin/ricotta
114
105
  homepage: http://github.com/eriksundin/ricotta-gem
115
106
  licenses: []
107
+ metadata: {}
116
108
  post_install_message:
117
109
  rdoc_options: []
118
110
  require_paths:
119
111
  - lib
120
112
  required_ruby_version: !ruby/object:Gem::Requirement
121
- none: false
122
113
  requirements:
123
- - - ! '>='
114
+ - - '>='
124
115
  - !ruby/object:Gem::Version
125
116
  version: '0'
126
117
  required_rubygems_version: !ruby/object:Gem::Requirement
127
- none: false
128
118
  requirements:
129
- - - ! '>='
119
+ - - '>='
130
120
  - !ruby/object:Gem::Version
131
121
  version: '0'
132
122
  requirements: []
133
123
  rubyforge_project:
134
- rubygems_version: 1.8.25
124
+ rubygems_version: 2.0.3
135
125
  signing_key:
136
- specification_version: 3
126
+ specification_version: 4
137
127
  summary: Ricotta
138
128
  test_files: []