golf 0.4.13 → 0.4.14

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.
Files changed (4) hide show
  1. data/Rakefile +4 -0
  2. data/lib/golf/cli.rb +5 -10
  3. data/lib/golf/version.rb +1 -1
  4. metadata +2 -22
data/Rakefile CHANGED
@@ -10,3 +10,7 @@ Rake::TestTask.new("test") do |t|
10
10
  t.libs << "test/"
11
11
  t.verbose = false
12
12
  end
13
+
14
+ task 'push' do
15
+ `gem build golf.gemspec |awk '$1 ~ / *File:/ {print $2}' |xargs gem push`
16
+ end
@@ -47,23 +47,18 @@ module Golf
47
47
  def server
48
48
  `rackup`
49
49
  end
50
-
50
+
51
51
  desc "compile [DESTINATION]", "Compile the app into a directory"
52
- # move resources into destination from gem
53
- # move golfapp/ over destination
54
- # drop component.js into destination
55
-
56
52
  def compile(dir)
57
- if Golf::Compiler.valid?('.')
53
+ if Golf::Compiler.valid?(self.destination_root)
58
54
  compiler = Golf::Compiler.new
59
- gem_resources = File.expand_path("../../../resources", __FILE__)
60
- directory(gem_resources, dir)
61
- directory('golfapp/', dir)
55
+ directory('resources', dir)
56
+ directory("#{self.destination_root}/golfapp", dir)
62
57
  create_file "#{dir}/components.js" do
63
58
  compiler.generate_componentsjs
64
59
  end
65
60
  else
66
- puts "golfapp/components not found"
61
+ puts "#{self.destination_root}/golfapp/components not found"
67
62
  end
68
63
  end
69
64
 
@@ -1,3 +1,3 @@
1
1
  module Golf
2
- VERSION = "0.4.13"
2
+ VERSION = "0.4.14"
3
3
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golf
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 13
10
- version: 0.4.13
5
+ version: 0.4.14
11
6
  platform: ruby
12
7
  authors:
13
8
  - Micha Niskin, Alan Dipert, Julio Capote
@@ -26,9 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
24
  version: "0"
33
25
  type: :runtime
34
26
  version_requirements: *id001
@@ -40,9 +32,6 @@ dependencies:
40
32
  requirements:
41
33
  - - ">="
42
34
  - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
35
  version: "0"
47
36
  type: :runtime
48
37
  version_requirements: *id002
@@ -54,9 +43,6 @@ dependencies:
54
43
  requirements:
55
44
  - - ">="
56
45
  - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
46
  version: "0"
61
47
  type: :runtime
62
48
  version_requirements: *id003
@@ -200,23 +186,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
186
  requirements:
201
187
  - - ">="
202
188
  - !ruby/object:Gem::Version
203
- hash: 3
204
- segments:
205
- - 0
206
189
  version: "0"
207
190
  required_rubygems_version: !ruby/object:Gem::Requirement
208
191
  none: false
209
192
  requirements:
210
193
  - - ">="
211
194
  - !ruby/object:Gem::Version
212
- hash: 3
213
- segments:
214
- - 0
215
195
  version: "0"
216
196
  requirements: []
217
197
 
218
198
  rubyforge_project: golf
219
- rubygems_version: 1.6.2
199
+ rubygems_version: 1.6.1
220
200
  signing_key:
221
201
  specification_version: 3
222
202
  summary: Component based front end JS Framework