espresso_init 0.0.2

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.
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .DS_Store
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in espresso_init.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 kittekat
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,53 @@
1
+ # EspressoInit
2
+
3
+ ## Resurrection of the Espresso Framework
4
+
5
+ End of June 2013 the authors of the Espresso Framework deleted the related repositories on Github.com and yanked the corresponding gems on Rubygems.org.
6
+
7
+
8
+ I had made an installation of the gems on my system on June/17, when I started to play with "enginery" and "rear".
9
+ From this local directories I could generate repositories in my public github account, anyway I lost all the history as I did not have forks.
10
+
11
+
12
+ To use this repos as gem source for the Espresso Framework, the way over Rubygems is blocked. So I changed the Gemfiles in these repos to reference my Github account. E.g. the Gemfile of "enginery" looks now like:
13
+
14
+ source 'https://rubygems.org'
15
+
16
+ gem 'e', :git => 'git://github.com/wokibe/espresso'
17
+ gem 'el', :git => 'git://github.com/wokibe/espresso-lungo'
18
+ gem 'rear', :git => 'git://github.com/wokibe/rear'
19
+
20
+ group :development do
21
+ gem 'specular', :git => 'git://github.com/wokibe/specular'
22
+ gem 'sonar', :git => 'git://github.com/wokibe/sonar'
23
+ end
24
+
25
+ gemspec
26
+
27
+ To help the "resurrection" of the framework, I created this little gem, which generates a Gemfile with all the references to the recovered repos.
28
+
29
+ ## Installation
30
+
31
+ $ gem install espresso_init
32
+
33
+ ## Usage
34
+
35
+ Start in a directory, where you want to place your Espresso projects
36
+
37
+ ...
38
+
39
+ $ espresso_init espresso-projects
40
+ $ cd espresso-projects
41
+ $ bundle install
42
+ $ bundle exec enginery g myproject
43
+ $ cd myproject
44
+
45
+ ...
46
+
47
+ ## Contributing
48
+
49
+ 1. Fork it
50
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
51
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
52
+ 4. Push to the branch (`git push origin my-new-feature`)
53
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
data/bin/espresso_init ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+ require 'optparse'
3
+
4
+ $:.unshift File.expand_path('../../lib', __FILE__)
5
+ require 'espresso_init'
6
+
7
+ OptionParser.new do |o|
8
+ o.banner = "Usage: #{__FILE__} [directory]"
9
+
10
+ o.on('-v', '--version', 'Show the version') do
11
+ puts EspressoInit::VERSION
12
+ exit
13
+ end
14
+
15
+ o.on_tail('-h', '--help', 'Show this message') do
16
+ puts o
17
+ puts " Generate '[directory/]Gemfile' with resurrected github gems"
18
+ exit 0
19
+ end
20
+ end.parse!
21
+
22
+ dir = Dir.pwd
23
+ name = ARGV[0].to_s
24
+ unless name.empty?
25
+ name =~ /\.\.|\// && fail('Directory name may not contain "/" nor ".."')
26
+ dir = File.join(dir, name)
27
+ end
28
+
29
+ task = EspressoInit::Task.new(dir)
30
+ task.generate
31
+ puts "Now change directory to #{@dir} and run 'bundle install'"
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/espresso_init/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["kittekat"]
6
+ gem.email = ["wolfkibe@gmail.com"]
7
+ gem.description = 'espresso_init-%s' %EspressoInit::VERSION
8
+ gem.summary = 'create a Gemfile with the resurrected github gems'
9
+ gem.homepage = 'https://github.com/wokibe/espresso_init'
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = 'espresso_init'
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "espresso_init"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = EspressoInit::VERSION
17
+
18
+ gem.add_development_dependency 'rake', '>= 10'
19
+ end
@@ -0,0 +1,38 @@
1
+ module EspressoInit
2
+ class Task
3
+
4
+ def initialize(dir)
5
+ @dir = dir
6
+ @name = 'Gemfile'
7
+ @path = File.join(@dir, @name)
8
+ fail("Will NOT overwrite the existing #{@path}") if File.exists?(@path)
9
+ end
10
+
11
+ def generate
12
+ if File.exists?(@dir)
13
+ fail("#{@dir} is not a directory") unless File.directory?(@dir)
14
+ else
15
+ puts "Generating the directory #{@dir}"
16
+ Dir.mkdir(@dir)
17
+ end
18
+
19
+ source = gemfile
20
+ puts "Generating the file #{@path}"
21
+ File.open(@path, 'w') {|f| f << source}
22
+ end
23
+
24
+ def gemfile
25
+ <<GEMFILE
26
+ gem 'e', :git => 'git://github.com/wokibe/espresso'
27
+ gem 'el', :git => 'git://github.com/wokibe/espresso-lungo'
28
+ gem 'rear', :git => 'git://github.com/wokibe/rear'
29
+ gem 'enginery', :git => 'git://github.com/wokibe/enginery'
30
+
31
+ group :development do
32
+ gem 'specular', :git => 'git://github.com/wokibe/specular'
33
+ gem 'sonar', :git => 'git://github.com/wokibe/sonar'
34
+ end
35
+ GEMFILE
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,3 @@
1
+ module EspressoInit
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,2 @@
1
+ require "espresso_init/task"
2
+ require "espresso_init/version"
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: espresso_init
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - kittekat
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-07-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '10'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '10'
30
+ description: espresso_init-0.0.2
31
+ email:
32
+ - wolfkibe@gmail.com
33
+ executables:
34
+ - espresso_init
35
+ extensions: []
36
+ extra_rdoc_files: []
37
+ files:
38
+ - .gitignore
39
+ - Gemfile
40
+ - LICENSE
41
+ - README.md
42
+ - Rakefile
43
+ - bin/espresso_init
44
+ - espresso_init.gemspec
45
+ - lib/espresso_init.rb
46
+ - lib/espresso_init/task.rb
47
+ - lib/espresso_init/version.rb
48
+ homepage: https://github.com/wokibe/espresso_init
49
+ licenses: []
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ segments:
61
+ - 0
62
+ hash: -1223259115362212877
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ segments:
70
+ - 0
71
+ hash: -1223259115362212877
72
+ requirements: []
73
+ rubyforge_project:
74
+ rubygems_version: 1.8.24
75
+ signing_key:
76
+ specification_version: 3
77
+ summary: create a Gemfile with the resurrected github gems
78
+ test_files: []