sweetsie 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -0,0 +1,45 @@
1
+ = Sweetsie: When you need to scratch something out!
2
+
3
+ == Description:
4
+
5
+ Sweetsie is a super simple framework that was designed for the use by
6
+ Porject ADRIENNE. The basic concept is to allow a developer to create
7
+ ruby scipts that can be used will ActiveRecord modles. Along with ruby
8
+ scripts, rake tasks are also available for smaller jobs.
9
+
10
+ == Install:
11
+
12
+ gem install sweetsie
13
+
14
+ == Getting started:
15
+
16
+ Start a new sweetsie project by running the sweetsie command along with
17
+ the name of your project. This will create a new directory with the name
18
+ of your project
19
+
20
+ $ sweetsie projectname
21
+
22
+ == License:
23
+
24
+ (The MIT License)
25
+
26
+ Copyright (c) 2011 Jacob Atkins
27
+
28
+ Permission is hereby granted, free of charge, to any person obtaining
29
+ a copy of this software and associated documentation files (the
30
+ 'Software'), to deal in the Software without restriction, including
31
+ without limitation the rights to use, copy, modify, merge, publish,
32
+ distribute, sublicense, and/or sell copies of the Software, and to
33
+ permit persons to whom the Software is furnished to do so, subject to
34
+ the following conditions:
35
+
36
+ The above copyright notice and this permission notice shall be
37
+ included in all copies or substantial portions of the Software.
38
+
39
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
40
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
42
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
43
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
44
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
45
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -9,7 +9,10 @@ begin
9
9
  gemspec.description = "Quick framework for when you need to scratch something out!"
10
10
  gemspec.email = "jacob.atkins@projectadrienne.com"
11
11
  gemspec.homepage = "http://github.com/jatkins/sweetsie"
12
- gemspec.description = "Quick framework for when you need to scratch something out!"
12
+ gemspec.description = "Sweetsie is a super simple framework that was designed for the use by
13
+ Porject ADRIENNE. The basic concept is to allow a developer to create
14
+ ruby scipts that can be used will ActiveRecord modles. Along with ruby
15
+ scripts, rake tasks are also available for smaller jobs."
13
16
  gemspec.authors = ["Jacob Atkins"]
14
17
 
15
18
  gemspec.add_dependency('templater', '>= 0.5.0')
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/bin/sweetsie CHANGED
@@ -13,4 +13,6 @@ module SweetsieGenerators
13
13
  add :project, NewProjectGenerator
14
14
  end
15
15
 
16
- SweetsieGenerators.run_cli Dir.pwd, 'sweetsie', '0.0.1', ['project',ARGV].flatten
16
+ SweetsieGenerators.run_cli Dir.pwd, 'sweetsie', '0.0.2', ['project',ARGV].flatten
17
+
18
+ File.chmod(0750, File.join(Dir.pwd, ARGV[0], 'script', 'generate'))
@@ -1,13 +1,11 @@
1
1
  class String
2
+ # Create a camelcase version of the name that is passed.
2
3
  def camelcase
3
4
  self.split('_').map{|e| e.capitalize}.join
4
5
  end
5
6
  end
6
7
 
7
8
  class Templater::Generator
8
- def camelcase
9
- self.name.split('_').map{|e| e.capitalize}.join
10
- end
11
9
 
12
10
  def underscore
13
11
  self.name.gsub(/::/, '/').
@@ -10,7 +10,7 @@ class NewProjectGenerator < Templater::Generator
10
10
  empty_directory :db, File.join('%root%', 'db')
11
11
  empty_directory :config, File.join('%root%', 'config')
12
12
  empty_directory :test, File.join('%root%', 'test')
13
- empty_directory :script, File.join('%root%', 'script') # TODO Add chmod callback
13
+ empty_directory :script, File.join('%root%', 'script')
14
14
  empty_directory :'test/models', File.join('%root%', 'test', 'models')
15
15
  empty_directory :'test/tasks', File.join('%root%', 'test', 'tasks')
16
16
 
@@ -25,4 +25,5 @@ class NewProjectGenerator < Templater::Generator
25
25
  files.each do |file_array|
26
26
  file file_array.last.to_sym, File.join(*file_array), File.join('%root%',*file_array)
27
27
  end
28
+
28
29
  end
data/sweetsie.gemspec CHANGED
@@ -5,12 +5,15 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sweetsie}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Jacob Atkins}]
12
12
  s.date = %q{2011-05-22}
13
- s.description = %q{Quick framework for when you need to scratch something out!}
13
+ s.description = %q{Sweetsie is a super simple framework that was designed for the use by
14
+ Porject ADRIENNE. The basic concept is to allow a developer to create
15
+ ruby scipts that can be used will ActiveRecord modles. Along with ruby
16
+ scripts, rake tasks are also available for smaller jobs.}
14
17
  s.email = %q{jacob.atkins@projectadrienne.com}
15
18
  s.executables = [%q{sweetsie}]
16
19
  s.extra_rdoc_files = [
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sweetsie
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jacob Atkins
@@ -45,7 +45,11 @@ dependencies:
45
45
  version: 3.0.3
46
46
  type: :runtime
47
47
  version_requirements: *id003
48
- description: Quick framework for when you need to scratch something out!
48
+ description: |-
49
+ Sweetsie is a super simple framework that was designed for the use by
50
+ Porject ADRIENNE. The basic concept is to allow a developer to create
51
+ ruby scipts that can be used will ActiveRecord modles. Along with ruby
52
+ scripts, rake tasks are also available for smaller jobs.
49
53
  email: jacob.atkins@projectadrienne.com
50
54
  executables:
51
55
  - sweetsie