falsework 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -6,18 +6,20 @@ require 'rake/clean'
6
6
  require 'rake/rdoctask'
7
7
  require 'rake/testtask'
8
8
 
9
+ require_relative 'lib/falsework/meta'
10
+ include Falsework
11
+
9
12
  require_relative 'test/rake_git'
10
- NAME = 'falsework'
11
13
 
12
14
  #
13
15
  # Generate dynamic targets
14
16
  #
15
17
  require_relative 'test/rake_erb_templates'
16
18
 
17
- ERB_DYN_SKELETON = erb_skeletons(NAME, 'naive')
19
+ ERB_DYN_SKELETON = erb_skeletons(Meta::NAME, 'naive')
18
20
  ERB_DYN_SKELETON.each {|k, v|
19
21
  file k => [v] do |t|
20
- erb_make(NAME, 'naive', t.name, t.prerequisites[0])
22
+ erb_make(Meta::NAME, 'naive', t.name, t.prerequisites[0])
21
23
  end
22
24
  }
23
25
 
@@ -32,20 +34,20 @@ CLOBBER.concat ERB_DYN_SKELETON.keys
32
34
  #
33
35
 
34
36
  spec = Gem::Specification.new {|i|
35
- i.name = NAME
37
+ i.name = Meta::NAME
36
38
  i.version = `bin/#{i.name} -V`
37
- i.summary = "A primitive scaffold generator for writing CLI programs in Ruby."
38
- i.description = i.summary
39
- i.author = 'Alexander Gromnitsky'
40
- i.email = 'alexander.gromnitsky@gmail.com'
41
- i.homepage = "http://github.com/gromnitsky/#{i.name}"
39
+ i.summary = "A primitive scaffold generator for writing CLI programs in Ruby"
40
+ i.description = i.summary + '.'
41
+ i.author = Meta::AUTHOR
42
+ i.email = Meta::EMAIL
43
+ i.homepage = Meta::HOMEPAGE
44
+
42
45
  i.platform = Gem::Platform::RUBY
43
46
  i.required_ruby_version = '>= 1.9.2'
44
47
  i.files = git_ls('.')
45
48
  i.files.concat ERB_DYN_SKELETON.keys.map {|i| i.sub(/#{Dir.pwd}\//, '') }
46
49
 
47
50
  i.executables = FileList['bin/*'].gsub(/^bin\//, '')
48
- i.default_executable = i.name
49
51
 
50
52
  i.test_files = FileList['test/test_*.rb']
51
53
 
data/doc/NEWS.rdoc CHANGED
@@ -1,3 +1,12 @@
1
+ === 0.2.4
2
+
3
+ Thu May 5 23:45:24 EEST 2011
4
+
5
+ - Minor Rakefile update (including the template) to reflect rubygems 1.8
6
+ changes.
7
+
8
+ - Added Gemfile.erb to naive template.
9
+
1
10
  === 0.2.3
2
11
 
3
12
  Mon Jan 3 12:41:16 EET 2011
@@ -1,6 +1,9 @@
1
1
  module Falsework
2
2
  module Meta
3
3
  NAME = 'falsework'
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
5
+ AUTHOR = 'Alexander Gromnitsky'
6
+ EMAIL = 'alexander.gromnitsky@gmail.com'
7
+ HOMEPAGE = 'http://github.com/gromnitsky/' + NAME
5
8
  end
6
9
  end
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "open4", "~>1.0.1"
4
+ gem "git", "~>1.2.5"
@@ -6,22 +6,25 @@ require 'rake/clean'
6
6
  require 'rake/rdoctask'
7
7
  require 'rake/testtask'
8
8
 
9
+ require_relative 'lib/<%= @project %>/meta'
10
+ include <%= @project.capitalize %>
11
+
9
12
  require_relative 'test/rake_git'
10
13
 
11
14
  spec = Gem::Specification.new {|i|
12
- i.name = '<%= @project %>'
15
+ i.name = Meta::NAME
13
16
  i.version = `bin/#{i.name} -V`
14
17
  i.summary = 'TO DO: fill this variable'
15
- i.description = i.summary
16
- i.author = '<%= @gecos %>'
17
- i.email = '<%= @email %>'
18
- i.homepage = "http://github.com/<%= @user %>/#{i.name}"
18
+ i.description = i.summary + '.'
19
+ i.author = Meta::AUTHOR
20
+ i.email = Meta::EMAIL
21
+ i.homepage = Meta::HOMEPAGE
22
+
19
23
  i.platform = Gem::Platform::RUBY
20
24
  i.required_ruby_version = '>= <%= RUBY_VERSION %>'
21
25
  i.files = git_ls('.')
22
26
 
23
27
  i.executables = FileList['bin/*'].gsub(/^bin\//, '')
24
- i.default_executable = i.name
25
28
 
26
29
  i.test_files = FileList['test/test_*.rb']
27
30
 
@@ -29,6 +32,7 @@ spec = Gem::Specification.new {|i|
29
32
  i.extra_rdoc_files = FileList['doc/*']
30
33
 
31
34
  i.add_dependency('open4', '>= 1.0.1')
35
+ i.add_development_dependency('git', '>= 1.2.5')
32
36
  }
33
37
 
34
38
  Rake::GemPackageTask.new(spec).define
@@ -43,4 +47,5 @@ Rake::RDocTask.new('doc') {|i|
43
47
 
44
48
  Rake::TestTask.new {|i|
45
49
  i.test_files = FileList['test/test_*.rb']
50
+ i.libs << '.'
46
51
  }
@@ -2,5 +2,8 @@ module <%= @project.capitalize %>
2
2
  module Meta
3
3
  NAME = '<%= @project %>'
4
4
  VERSION = '0.0.1'
5
+ AUTHOR = '<%= @gecos %>'
6
+ EMAIL = '<%= @email %>'
7
+ HOMEPAGE = 'http://github.com/<%= @user %>/' + NAME
5
8
  end
6
9
  end
@@ -213,4 +213,4 @@ module <%= @project.capitalize %>
213
213
  end # trestle
214
214
  end
215
215
 
216
- # Don't remove this: falsework/0.2.2/naive/2010-12-26T04:50:00+02:00
216
+ # Don't remove this: falsework/0.2.4/naive/2011-04-30T01:22:46+03:00
@@ -34,4 +34,4 @@ def cmd(c)
34
34
  '../bin/' + c
35
35
  end
36
36
 
37
- # Don't remove this: falsework/0.2.2/naive/2010-12-26T04:50:00+02:00
37
+ # Don't remove this: falsework/0.2.4/naive/2011-04-30T01:22:46+03:00
@@ -33,4 +33,4 @@ end
33
33
 
34
34
  pp git_ls('.') if __FILE__ == $0
35
35
 
36
- # Don't remove this: falsework/0.2.2/naive/2010-12-26T04:50:00+02:00
36
+ # Don't remove this: falsework/0.2.4/naive/2011-04-30T01:22:46+03:00
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falsework
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 3
9
- version: 0.2.3
4
+ prerelease:
5
+ version: 0.2.4
10
6
  platform: ruby
11
7
  authors:
12
8
  - Alexander Gromnitsky
@@ -14,8 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-01-03 00:00:00 +02:00
18
- default_executable: falsework
13
+ date: 2011-04-29 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: git
@@ -25,10 +20,6 @@ dependencies:
25
20
  requirements:
26
21
  - - ">="
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 1
30
- - 2
31
- - 5
32
23
  version: 1.2.5
33
24
  type: :runtime
34
25
  version_requirements: *id001
@@ -40,10 +31,6 @@ dependencies:
40
31
  requirements:
41
32
  - - ">="
42
33
  - !ruby/object:Gem::Version
43
- segments:
44
- - 1
45
- - 0
46
- - 1
47
34
  version: 1.0.1
48
35
  type: :runtime
49
36
  version_requirements: *id002
@@ -54,10 +41,10 @@ executables:
54
41
  extensions: []
55
42
 
56
43
  extra_rdoc_files:
44
+ - doc/NEWS.rdoc
57
45
  - doc/LICENSE
58
46
  - doc/README.rdoc
59
47
  - doc/TODO.rdoc
60
- - doc/NEWS.rdoc
61
48
  files:
62
49
  - README.rdoc
63
50
  - Rakefile
@@ -70,6 +57,7 @@ files:
70
57
  - lib/falsework/meta.rb
71
58
  - lib/falsework/mould.rb
72
59
  - lib/falsework/templates/naive/.gitignore.erb
60
+ - lib/falsework/templates/naive/Gemfile.erb
73
61
  - lib/falsework/templates/naive/README.rdoc.erb
74
62
  - lib/falsework/templates/naive/Rakefile.erb
75
63
  - lib/falsework/templates/naive/bin/%%@project%%.erb
@@ -91,7 +79,6 @@ files:
91
79
  - lib/falsework/templates/naive/lib/%%@project%%/trestle.rb.erb
92
80
  - lib/falsework/templates/naive/test/helper_trestle.rb.erb
93
81
  - lib/falsework/templates/naive/test/rake_git.rb.erb
94
- has_rdoc: true
95
82
  homepage: http://github.com/gromnitsky/falsework
96
83
  licenses: []
97
84
 
@@ -106,25 +93,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
93
  requirements:
107
94
  - - ">="
108
95
  - !ruby/object:Gem::Version
109
- segments:
110
- - 1
111
- - 9
112
- - 2
113
96
  version: 1.9.2
114
97
  required_rubygems_version: !ruby/object:Gem::Requirement
115
98
  none: false
116
99
  requirements:
117
100
  - - ">="
118
101
  - !ruby/object:Gem::Version
119
- segments:
120
- - 0
121
102
  version: "0"
122
103
  requirements: []
123
104
 
124
105
  rubyforge_project:
125
- rubygems_version: 1.3.7
106
+ rubygems_version: 1.8.0
126
107
  signing_key:
127
108
  specification_version: 3
128
- summary: A primitive scaffold generator for writing CLI programs in Ruby.
109
+ summary: A primitive scaffold generator for writing CLI programs in Ruby
129
110
  test_files:
130
111
  - test/test_exe.rb