switch 0.0.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ pkg/*
2
+ *.gem
3
+ .bundle
4
+ .DS_Store
5
+ coverage/*
6
+ docs/*
7
+ vendor/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in switch.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ switch (0.0.0.alpha)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ builder (3.0.0)
10
+ cucumber (0.10.0)
11
+ builder (>= 2.1.2)
12
+ diff-lcs (~> 1.1.2)
13
+ gherkin (~> 2.3.2)
14
+ json (~> 1.4.6)
15
+ term-ansicolor (~> 1.0.5)
16
+ diff-lcs (1.1.2)
17
+ gherkin (2.3.2)
18
+ json (~> 1.4.6)
19
+ term-ansicolor (~> 1.0.5)
20
+ json (1.4.6)
21
+ rspec (2.3.0)
22
+ rspec-core (~> 2.3.0)
23
+ rspec-expectations (~> 2.3.0)
24
+ rspec-mocks (~> 2.3.0)
25
+ rspec-core (2.3.1)
26
+ rspec-expectations (2.3.0)
27
+ diff-lcs (~> 1.1.2)
28
+ rspec-mocks (2.3.0)
29
+ term-ansicolor (1.0.5)
30
+
31
+ PLATFORMS
32
+ ruby
33
+
34
+ DEPENDENCIES
35
+ cucumber (>= 0.10.0)
36
+ rspec (>= 2.0.0)
37
+ switch!
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Mike Bethany
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,24 @@
1
+ = Status
2
+
3
+ ** IN DEVELOPMENT **: This is not usable code yet.
4
+
5
+ = switch
6
+
7
+ Install, manage, and switch between Ruby versions on Mac OS X.
8
+
9
+
10
+ == Contributing to switch
11
+
12
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
13
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
14
+ * Fork the project
15
+ * Start a feature/bugfix branch
16
+ * Commit and push until you are happy with your contribution
17
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
18
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
19
+
20
+ == Copyright
21
+
22
+ Copyright (c) 2010 Mike Bethany. See LICENSE.txt for
23
+ further details.
24
+
data/Rakefile ADDED
@@ -0,0 +1,43 @@
1
+ require 'bundler'
2
+
3
+ begin
4
+ require 'cucumber/rake/task'
5
+ Cucumber::Rake::Task.new(:features)
6
+ rescue Exception => e
7
+ task :features do
8
+ $stderr.puts e.message
9
+ abort 'Cucumber tasks will not be run.'
10
+ end
11
+ end
12
+
13
+ begin
14
+ require 'rspec/core'
15
+ require 'rspec/core/rake_task'
16
+ RSpec::Core::RakeTask.new(:rspec) do |rspec|
17
+ rspec.pattern = FileList['spec/**/*_spec.rb']
18
+ end
19
+ rescue Exception => e
20
+ task :rspec do
21
+ $stderr.puts e.message
22
+ abort 'RSpec tasks will not be run.'
23
+ end
24
+ end
25
+
26
+ task :build do
27
+ unless @force_build
28
+ Rake::Task[:features].invoke
29
+ Rake::Task[:rspec].invoke
30
+ end
31
+ Bundler::GemHelper.install_tasks
32
+ end
33
+
34
+ # Ignore tests and just build the gem
35
+ # This is useful when you want to publish a gem
36
+ # with a purposefully failing test.
37
+ task :force_build do
38
+ @force_build = true
39
+ Rake::Task[:build].invoke
40
+ end
41
+
42
+
43
+ task :default => [:features, :rspec]
data/bin/switch ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '/../lib'))
3
+ require 'switch'
4
+ Environment=:production
@@ -0,0 +1,12 @@
1
+ Given /^a known state$/ do
2
+ @state = ""
3
+ end
4
+
5
+ When /^I change the state to "([^"]*)"$/ do |new_state|
6
+ @state = new_state
7
+ end
8
+
9
+ Then /^the new state should be "([^"]*)"$/ do |state|
10
+ @state.should == state
11
+ end
12
+
@@ -0,0 +1,13 @@
1
+ require 'bundler'
2
+ begin
3
+ Bundler.setup(:default, :development)
4
+ rescue Bundler::BundlerError => e
5
+ $stderr.puts e.message
6
+ $stderr.puts "Run `bundle install` to install missing gems"
7
+ exit e.status_code
8
+ end
9
+
10
+ $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
11
+ require 'switch'
12
+
13
+ require 'rspec/expectations'
@@ -0,0 +1,9 @@
1
+ Feature: Example
2
+ In order to provide a feature example
3
+ as a programmer
4
+ there should be an example below
5
+
6
+ Scenario: An Example
7
+ Given a known state
8
+ When I change the state to "x"
9
+ Then the new state should be "x"
data/lib/switch.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'switch/version'
2
+ require 'switch/switch'
@@ -0,0 +1,3 @@
1
+ module Switch
2
+ # Your code goes here...
3
+ end
@@ -0,0 +1,3 @@
1
+ module Switch
2
+ VERSION = "0.0.0.alpha"
3
+ end
@@ -0,0 +1,12 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'switch'
5
+
6
+ # Requires supporting files with custom matchers and macros, etc,
7
+ # in ./support/ and its subdirectories.
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
+
10
+ RSpec.configure do |config|
11
+
12
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+
3
+ describe "Switch" do
4
+ it "fails" do
5
+ fail "you should probably write a real test"
6
+ end
7
+ end
data/switch.gemspec ADDED
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "switch/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "switch"
7
+ s.version = Switch::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Mike Bethany"]
10
+ s.email = ["mikbe.tk@gmail.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{Switch Ruby Versions Easily}
13
+ s.description = %q{** NON-FUNCTIONING! PLACE HOLDER ONLY ** Install, manage, and switch between Ruby version on Mac OS X}
14
+
15
+ s.add_development_dependency('rspec', '>= 2.0.0')
16
+ s.add_development_dependency('cucumber', '>= 0.10.0')
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ["lib"]
22
+ end
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: switch
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: true
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 0
9
+ - alpha
10
+ version: 0.0.0.alpha
11
+ platform: ruby
12
+ authors:
13
+ - Mike Bethany
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-12-30 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rspec
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ segments:
30
+ - 2
31
+ - 0
32
+ - 0
33
+ version: 2.0.0
34
+ type: :development
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: cucumber
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ segments:
45
+ - 0
46
+ - 10
47
+ - 0
48
+ version: 0.10.0
49
+ type: :development
50
+ version_requirements: *id002
51
+ description: "** NON-FUNCTIONING! PLACE HOLDER ONLY ** Install, manage, and switch between Ruby version on Mac OS X"
52
+ email:
53
+ - mikbe.tk@gmail.com
54
+ executables:
55
+ - switch
56
+ extensions: []
57
+
58
+ extra_rdoc_files: []
59
+
60
+ files:
61
+ - .gitignore
62
+ - Gemfile
63
+ - Gemfile.lock
64
+ - LICENSE.txt
65
+ - README.rdoc
66
+ - Rakefile
67
+ - bin/switch
68
+ - features/step_definitions/switch_steps.rb
69
+ - features/support/env.rb
70
+ - features/switch.feature
71
+ - lib/switch.rb
72
+ - lib/switch/switch.rb
73
+ - lib/switch/version.rb
74
+ - spec/spec_helper.rb
75
+ - spec/switch/switch_spec.rb
76
+ - switch.gemspec
77
+ has_rdoc: true
78
+ homepage: ""
79
+ licenses: []
80
+
81
+ post_install_message:
82
+ rdoc_options: []
83
+
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ segments:
92
+ - 0
93
+ version: "0"
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ">"
98
+ - !ruby/object:Gem::Version
99
+ segments:
100
+ - 1
101
+ - 3
102
+ - 1
103
+ version: 1.3.1
104
+ requirements: []
105
+
106
+ rubyforge_project:
107
+ rubygems_version: 1.3.7
108
+ signing_key:
109
+ specification_version: 3
110
+ summary: Switch Ruby Versions Easily
111
+ test_files:
112
+ - features/step_definitions/switch_steps.rb
113
+ - features/support/env.rb
114
+ - features/switch.feature
115
+ - spec/spec_helper.rb
116
+ - spec/switch/switch_spec.rb