sntr 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2010 Julio Javier Cicchelli
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,32 @@
1
+ = SNTR
2
+ This is a command-line tool to ease the flow of creating and managing Sinatra applications and extensions.
3
+
4
+ === Installation
5
+ In order to install this gem, you just need to install the gem from your command line as follows:
6
+
7
+ $gem install sntr
8
+
9
+ === Usage
10
+ ...The usage will be explained here...
11
+
12
+ === Dependencies
13
+ This library have the following runtime dependencies:
14
+
15
+ * sinatra [http://sinatrarb.com]
16
+
17
+ === Contributions
18
+ Everybody is welcome to contribute to this project by commenting the source code, suggesting modifications or new ideas, reporting bugs, writing some documentation and, of course, you're also welcome to contribute with patches as well!
19
+
20
+ In case you would like to contribute on this library, here's the list of extra dependencies you would need:
21
+
22
+ * rspec [http://rspec.info]
23
+ * cucumber [http://cukes.info]
24
+
25
+ === Contributors
26
+ * Julio Javier Cicchelli [http://github.com/mr-rock]
27
+
28
+ === Notes
29
+ This library is being developed by using the Ruby 1.9.1 interpreter [http://www.ruby-lang.org] and was not being tested on any other version nor implementation of the interpreter.
30
+
31
+ === License
32
+ This extension is licensed under the MIT License [http://creativecommons.org/licenses/MIT].
@@ -0,0 +1,60 @@
1
+ require 'isolate/now'
2
+ require 'rake/clean'
3
+ require 'rake/rdoctask'
4
+ require 'rake/gempackagetask'
5
+ require 'rspec/core/rake_task'
6
+ require 'cucumber/rake/task'
7
+
8
+ CLEAN.include %w[doc/ pkg/]
9
+
10
+ desc 'Load the GemSpec definition file.'
11
+ load 'sntr.gemspec'
12
+
13
+ desc 'Package building.'
14
+ Rake::GemPackageTask.new GEM do |package|
15
+ package.gem_spec = GEM
16
+ package.need_tar = false
17
+ package.need_zip = false
18
+ end
19
+
20
+ desc 'Documentation generation.'
21
+ Rake::RDocTask.new :rdoc do |documentation|
22
+ documentation.rdoc_files.add %w[README.rdoc LICENSE lib/**/*.rb]
23
+ documentation.main = 'README.rdoc'
24
+ documentation.title = 'SNTR Documentation'
25
+ documentation.rdoc_dir = 'doc'
26
+ documentation.options = %w[--line-numbers --inline-source --charset=UTF-8]
27
+ end
28
+
29
+ namespace :deployment do
30
+ desc 'Deployment on the Github repository.'
31
+ task :git do
32
+ sh 'git checkout master'
33
+ sh 'git merge development'
34
+ sh 'git push github master --tags'
35
+ sh 'git checkout development'
36
+ end
37
+
38
+ desc 'Deployment on the RubyGems repository.'
39
+ task :gem => [:clean, :package] do
40
+ sh 'gem push pkg/*.gem'
41
+ end
42
+ end
43
+
44
+ desc 'Deployment on Github and Gemcutter.'
45
+ task :deploy => ['deployment:git', 'deployment:gem']
46
+
47
+ desc 'Functional testing with RSpec.'
48
+ RSpec::Core::RakeTask.new :rspec do |task|
49
+ task.rspec_opts = %w[--colour --format progress]
50
+ task.pattern = 'spec/*.rb'
51
+ end
52
+
53
+ desc 'Acceptance testing with Cucumber.'
54
+ task :features, :tags do |t, args|
55
+ Cucumber::Rake::Task.new :features do |task|
56
+ task.cucumber_opts = %w[--format pretty]
57
+ task.cucumber_opts << %w[--tags #{args[:tags]}] unless args.inspect == '{}'
58
+ task.rcov = false
59
+ end
60
+ end
File without changes
@@ -0,0 +1,27 @@
1
+ Feature: Create a new Sinatra project
2
+ In order to ease the creation process of a Sinatra application
3
+ As a Sinatra developer
4
+ I want to create the basic structure of a Sinatra application
5
+
6
+ Scenario: Create the basic structure of the Sinatra classic style application
7
+ Given the 'sntr' program is installed in the computer
8
+ When I execute the 'sntr' command from the command-line
9
+ And I pass the 'create' attribute to the command
10
+ And I pass the 'test' value to the command
11
+ Then the path 'test' should have been created
12
+ And the path 'test/app.rb' should have been created
13
+ And the path 'test/config.ru' should have been created
14
+ And the path 'test/lib' should have been created
15
+ And the path 'test/lib/test.rb' should have been created
16
+ And the path 'test/public' should have been created
17
+ And the path 'test/public/img' should have been created
18
+ And the path 'test/public/js' should have been created
19
+ And the path 'test/public/js/app.js' should have been created
20
+ And the path 'test/public/css' should have been created
21
+ And the path 'test/public/css/app.css' should have been created
22
+ And the path 'test/views' should have been created
23
+
24
+
25
+
26
+
27
+
File without changes
@@ -0,0 +1,2 @@
1
+ require File.join Dir.pwd, %w[lib sntr]
2
+ require 'rspec/expectations'
File without changes
@@ -0,0 +1 @@
1
+ require File.join Dir.pwd, %w[lib sntr]
metadata ADDED
@@ -0,0 +1,123 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sntr
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
10
+ platform: ruby
11
+ authors:
12
+ - Julio Javier Cicchelli
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-12-29 00:00:00 +01:00
18
+ default_executable: sntr
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: sinatra
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 1
30
+ - 1
31
+ - 0
32
+ version: 1.1.0
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: rspec
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 2
45
+ - 3
46
+ - 0
47
+ version: 2.3.0
48
+ type: :development
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: cucumber
52
+ prerelease: false
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ segments:
59
+ - 0
60
+ - 10
61
+ - 0
62
+ version: 0.10.0
63
+ type: :development
64
+ version_requirements: *id003
65
+ description: " A command-line tool to ease the flow of creating and managing both Sinatra application and extensions.\n"
66
+ email: javier@rock-n-code.com
67
+ executables:
68
+ - sntr
69
+ extensions: []
70
+
71
+ extra_rdoc_files:
72
+ - LICENSE
73
+ files:
74
+ - LICENSE
75
+ - README.rdoc
76
+ - Rakefile
77
+ - bin/sntr
78
+ - lib/sntr.rb
79
+ - features/create.feature
80
+ - features/steps/steps.rb
81
+ - features/support/env.rb
82
+ - spec/spec_helper.rb
83
+ has_rdoc: true
84
+ homepage: http://github.com/rock-n-code/sntr
85
+ licenses: []
86
+
87
+ post_install_message:
88
+ rdoc_options: []
89
+
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ segments:
98
+ - 1
99
+ - 8
100
+ - 7
101
+ version: 1.8.7
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ segments:
108
+ - 1
109
+ - 3
110
+ - 7
111
+ version: 1.3.7
112
+ requirements: []
113
+
114
+ rubyforge_project:
115
+ rubygems_version: 1.3.7
116
+ signing_key:
117
+ specification_version: 3
118
+ summary: A tool to handle Sinatra applications and extensions easily.
119
+ test_files:
120
+ - features/create.feature
121
+ - features/steps/steps.rb
122
+ - features/support/env.rb
123
+ - spec/spec_helper.rb