cup 0.0.3 → 0.0.4
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 +1 -0
- data/Gemfile.lock +2 -11
- data/cup.gemspec +2 -3
- data/lib/cup/builder.rb +5 -5
- data/lib/cup/command_line.rb +12 -10
- data/lib/cup/cupfile.rb +25 -14
- data/lib/cup/directory.rb +4 -4
- data/lib/cup/server/app.rb +3 -2
- data/lib/cup/version.rb +1 -1
- data/spec/cup/builder_spec.rb +7 -7
- data/spec/cup/command_line_spec.rb +5 -5
- data/spec/cup/cupfile_spec.rb +5 -5
- data/spec/cup/directory_spec.rb +5 -5
- data/spec/support/macros.rb +1 -1
- data/views/layout.slim +2 -2
- metadata +45 -56
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cup (0.0.
|
5
|
-
activemodel
|
4
|
+
cup (0.0.4)
|
6
5
|
coffee-script
|
6
|
+
rack (= 1.3.3)
|
7
7
|
rake
|
8
8
|
sass
|
9
9
|
sinatra
|
@@ -16,15 +16,8 @@ PATH
|
|
16
16
|
GEM
|
17
17
|
remote: http://rubygems.org/
|
18
18
|
specs:
|
19
|
-
activemodel (3.1.1)
|
20
|
-
activesupport (= 3.1.1)
|
21
|
-
builder (~> 3.0.0)
|
22
|
-
i18n (~> 0.6)
|
23
|
-
activesupport (3.1.1)
|
24
|
-
multi_json (~> 1.0)
|
25
19
|
archive-tar-minitar (0.5.2)
|
26
20
|
backports (2.3.0)
|
27
|
-
builder (3.0.0)
|
28
21
|
coffee-script (2.2.0)
|
29
22
|
coffee-script-source
|
30
23
|
execjs
|
@@ -35,7 +28,6 @@ GEM
|
|
35
28
|
eventmachine (0.12.10)
|
36
29
|
execjs (1.2.9)
|
37
30
|
multi_json (~> 1.0)
|
38
|
-
i18n (0.6.0)
|
39
31
|
libv8 (3.3.10.2)
|
40
32
|
linecache19 (0.5.12)
|
41
33
|
ruby_core_source (>= 0.1.4)
|
@@ -105,7 +97,6 @@ PLATFORMS
|
|
105
97
|
|
106
98
|
DEPENDENCIES
|
107
99
|
cup!
|
108
|
-
rack (= 1.3.3)
|
109
100
|
rack-test
|
110
101
|
rspec
|
111
102
|
ruby-debug19
|
data/cup.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Cup::VERSION
|
8
8
|
s.authors = ['Sam Taylor']
|
9
9
|
s.email = ['sjltaylor@gmail.com']
|
10
|
-
s.homepage = ''
|
10
|
+
s.homepage = 'https://github.com/sjltaylor/cup'
|
11
11
|
s.summary = 'ruby based tools for developing javascript libraries'
|
12
12
|
# s.description = %q{TODO: Write a gem description}
|
13
13
|
|
@@ -20,7 +20,6 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.require_paths = ['lib']
|
21
21
|
|
22
22
|
s.add_runtime_dependency 'thor'
|
23
|
-
s.add_runtime_dependency 'activemodel'
|
24
23
|
s.add_runtime_dependency 'rake'
|
25
24
|
s.add_runtime_dependency 'therubyracer'
|
26
25
|
s.add_runtime_dependency 'uglifier'
|
@@ -29,12 +28,12 @@ Gem::Specification.new do |s|
|
|
29
28
|
s.add_runtime_dependency 'sass'
|
30
29
|
s.add_runtime_dependency 'coffee-script'
|
31
30
|
s.add_runtime_dependency 'yard'
|
31
|
+
s.add_runtime_dependency 'rack', '1.3.3'
|
32
32
|
|
33
33
|
s.add_development_dependency 'ruby-debug19'
|
34
34
|
s.add_development_dependency 'rspec'
|
35
35
|
s.add_development_dependency 'shoulda'
|
36
36
|
s.add_development_dependency 'statemachine'
|
37
|
-
s.add_development_dependency 'rack', '=1.3.3'
|
38
37
|
s.add_development_dependency 'rack-test'
|
39
38
|
s.add_development_dependency 'thin'
|
40
39
|
s.add_development_dependency 'sinatra-reloader'
|
data/lib/cup/builder.rb
CHANGED
@@ -3,7 +3,7 @@ require 'cup/noop_shell'
|
|
3
3
|
|
4
4
|
module Cup
|
5
5
|
class Builder
|
6
|
-
|
6
|
+
include FileUtils
|
7
7
|
|
8
8
|
attr_reader :directory
|
9
9
|
|
@@ -75,7 +75,7 @@ module Cup
|
|
75
75
|
mkdir build_directory unless Dir.exists?(build_directory)
|
76
76
|
file = File.open(output_file, 'w')
|
77
77
|
|
78
|
-
file.write(
|
78
|
+
file.write(licence_header)
|
79
79
|
|
80
80
|
input_files.each do |input_file|
|
81
81
|
file.write(';')
|
@@ -95,9 +95,9 @@ module Cup
|
|
95
95
|
def default_options
|
96
96
|
{ :cli => NoopShell }
|
97
97
|
end
|
98
|
-
def
|
99
|
-
|
100
|
-
|
98
|
+
def licence_header
|
99
|
+
licence = File.read(directory.cupfile.licence) rescue nil
|
100
|
+
licence.nil? ? '' : "/*\n#{licence}\n*/"
|
101
101
|
end
|
102
102
|
def input_files
|
103
103
|
directory.javascripts :build_input
|
data/lib/cup/command_line.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
ENV['RACK_ENV'] ||= File.exists?(File.expand_path('../../../development', __FILE__)) ? 'development' : 'production'
|
2
|
+
|
1
3
|
require 'thor'
|
2
4
|
require 'pathname'
|
3
5
|
require 'cup'
|
@@ -33,7 +35,7 @@ Cup.define do |cup|
|
|
33
35
|
|
34
36
|
name '#{name}'
|
35
37
|
version '0.0.1'
|
36
|
-
|
38
|
+
licence 'licence.txt'
|
37
39
|
|
38
40
|
javascripts do
|
39
41
|
vendor 'jasmine.js', :*
|
@@ -63,8 +65,8 @@ CUPFILE
|
|
63
65
|
File.exists?(root + 'Cupfile')
|
64
66
|
end
|
65
67
|
|
66
|
-
def
|
67
|
-
root + '
|
68
|
+
def licence_file
|
69
|
+
root + 'licence.txt'
|
68
70
|
end
|
69
71
|
|
70
72
|
def get_jquery
|
@@ -72,14 +74,14 @@ CUPFILE
|
|
72
74
|
return jquery if $?.exitstatus == 0
|
73
75
|
end
|
74
76
|
|
75
|
-
def
|
77
|
+
def get_licence
|
76
78
|
<<-LICENSE
|
77
79
|
Copyright (C) #{Time.now.year} by #{ENV['USER'] || 'THE_MAN'}
|
78
80
|
|
79
81
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
80
82
|
of this software and associated documentation files (the "Software"), to deal
|
81
83
|
in the Software without restriction, including without limitation the rights
|
82
|
-
to use, copy, modify, merge, publish, distribute,
|
84
|
+
to use, copy, modify, merge, publish, distribute, sublicence, and/or sell
|
83
85
|
copies of the Software, and to permit persons to whom the Software is
|
84
86
|
furnished to do so, subject to the following conditions:
|
85
87
|
|
@@ -144,7 +146,7 @@ LICENSE
|
|
144
146
|
|
145
147
|
create_file helper.cupfile, helper.cupfile_default_content(name)
|
146
148
|
|
147
|
-
create_file helper.
|
149
|
+
create_file helper.licence_file, helper.get_licence
|
148
150
|
|
149
151
|
jquery = helper.get_jquery
|
150
152
|
|
@@ -169,14 +171,14 @@ LICENSE
|
|
169
171
|
Cup.build! :cli => self
|
170
172
|
end
|
171
173
|
|
172
|
-
desc "concatenate", '
|
174
|
+
desc "concatenate", 'concatenates to STDOUT'
|
173
175
|
def concatenate
|
174
|
-
$stdout.
|
176
|
+
$stdout.puts Cup.concatenate!
|
175
177
|
end
|
176
178
|
|
177
|
-
desc "minify", '
|
179
|
+
desc "minify", 'minifies to STDOUT'
|
178
180
|
def minify
|
179
|
-
$stdout.
|
181
|
+
$stdout.puts Cup.minify!
|
180
182
|
end
|
181
183
|
|
182
184
|
desc "server [PORT]", 'Starts a sinatra app which serves spec runners etc.'
|
data/lib/cup/cupfile.rb
CHANGED
@@ -1,15 +1,9 @@
|
|
1
|
-
require 'active_model'
|
2
|
-
|
3
1
|
module Cup
|
4
2
|
class Cupfile
|
5
|
-
include ActiveModel::Validations
|
6
3
|
class CupfileError < RuntimeError; end
|
7
4
|
|
8
5
|
attr_accessor :path
|
9
|
-
attr_reader :path, :name, :version, :
|
10
|
-
|
11
|
-
validates_presence_of :name, :version, :path
|
12
|
-
validate :license_file_exists?
|
6
|
+
attr_reader :path, :validation_errors, :name, :version, :licence, :before_build, :after_build, :uglifier_options
|
13
7
|
|
14
8
|
def initialize path
|
15
9
|
|
@@ -18,7 +12,8 @@ module Cup
|
|
18
12
|
@uglifier_options = {}
|
19
13
|
@before_build = lambda {}
|
20
14
|
@after_build = lambda {}
|
21
|
-
|
15
|
+
@validation_errors = []
|
16
|
+
|
22
17
|
%w{vendor spec lib src}.each do |dir|
|
23
18
|
set_javascript_patterns_for dir.to_sym, :*
|
24
19
|
end
|
@@ -31,8 +26,27 @@ module Cup
|
|
31
26
|
@javascripts
|
32
27
|
end
|
33
28
|
|
29
|
+
def valid?
|
30
|
+
@validation_errors = []
|
31
|
+
|
32
|
+
validation_error 'cupfile error, path not specified' if path.nil?
|
33
|
+
validation_error 'name is required' if name.nil? or name.strip.size == 0
|
34
|
+
validation_error 'version is require and must be of the form X.Y.Z where X, Y and Z are numbers' unless version =~ /\d+\.\d+\.\d+/
|
35
|
+
validation_error "licence file '#{licence}' does not exist" unless licence_file_exists?
|
36
|
+
|
37
|
+
@validation_errors.empty?
|
38
|
+
end
|
39
|
+
|
40
|
+
def error_messages(join=', ')
|
41
|
+
@validation_errors.join join
|
42
|
+
end
|
43
|
+
|
34
44
|
private
|
35
45
|
|
46
|
+
def validation_error(msg)
|
47
|
+
@validation_errors << msg
|
48
|
+
end
|
49
|
+
|
36
50
|
def set_javascript_patterns_for subdir, *patterns
|
37
51
|
|
38
52
|
current_directory = File.dirname(File.expand_path(self.path))
|
@@ -56,11 +70,8 @@ module Cup
|
|
56
70
|
end.flatten.compact.uniq
|
57
71
|
end
|
58
72
|
|
59
|
-
def
|
60
|
-
|
61
|
-
license_path = "#{File.dirname(File.expand_path(path))}/#{license}"
|
62
|
-
errors.add :license, "#{license} is not a valid license file" unless File.exist?(license_path) and not File.directory?(license_path)
|
63
|
-
end
|
73
|
+
def licence_file_exists?
|
74
|
+
licence.nil? or path.nil? or File.file?("#{File.dirname(path.expand_path)}/#{licence}")
|
64
75
|
end
|
65
76
|
|
66
77
|
class DSL < BasicObject
|
@@ -68,7 +79,7 @@ module Cup
|
|
68
79
|
|
69
80
|
## DSL members
|
70
81
|
## setters
|
71
|
-
%W{version name
|
82
|
+
%W{version name licence uglifier_options}.each do |m|
|
72
83
|
define_method m do |value|
|
73
84
|
@cupfile.instance_variable_set "@#{m}", value
|
74
85
|
end
|
data/lib/cup/directory.rb
CHANGED
@@ -26,7 +26,7 @@ module Cup
|
|
26
26
|
@cupfile ||= Cup::Cupfile.new(path + 'Cupfile')
|
27
27
|
|
28
28
|
unless @cupfile.valid?
|
29
|
-
raise Cup::Cupfile::CupfileError.new("Cupfile not valid: #{@cupfile.path.to_s}\n#{@cupfile.
|
29
|
+
raise Cup::Cupfile::CupfileError.new("Cupfile not valid: #{@cupfile.path.to_s}\n#{@cupfile.error_messages("\n")}")
|
30
30
|
end
|
31
31
|
|
32
32
|
@cupfile
|
@@ -46,9 +46,9 @@ module Cup
|
|
46
46
|
opts[:relative] ? output : "#{self.path}/#{output}"
|
47
47
|
end
|
48
48
|
|
49
|
-
def
|
50
|
-
|
51
|
-
opts[:relative] ?
|
49
|
+
def licence(opts={})
|
50
|
+
licence = "#{cupfile.licence}"
|
51
|
+
opts[:relative] ? licence : "#{self.path}/#{licence}"
|
52
52
|
end
|
53
53
|
|
54
54
|
def javascripts scheme=nil
|
data/lib/cup/server/app.rb
CHANGED
@@ -15,13 +15,14 @@ begin
|
|
15
15
|
rescue LoadError
|
16
16
|
end
|
17
17
|
|
18
|
+
ENV['RACK_ENV'] ||= File.exists?(File.expand_path('../../../../development', __FILE__)) ? 'development' : 'production'
|
19
|
+
|
18
20
|
module Cup
|
19
21
|
module Server
|
20
22
|
class App < Sinatra::Base
|
21
|
-
|
22
23
|
use Middleware
|
23
24
|
|
24
|
-
configure(:development) do
|
25
|
+
configure(:development, :test) do
|
25
26
|
require 'ruby-debug'
|
26
27
|
require 'sinatra/reloader'
|
27
28
|
register Sinatra::Reloader
|
data/lib/cup/version.rb
CHANGED
data/spec/cup/builder_spec.rb
CHANGED
@@ -64,20 +64,20 @@ describe Cup::Builder do
|
|
64
64
|
File.should exist(output_file)
|
65
65
|
end
|
66
66
|
|
67
|
-
context 'when a
|
67
|
+
context 'when a licence file is specified' do
|
68
68
|
|
69
|
-
let(:
|
70
|
-
let(:
|
69
|
+
let(:licence){"\n\nLICENSE\nFILE\nCONTENT\n\n\n"}
|
70
|
+
let(:licence_comment) {"/*\n" + licence + "\n*/"}
|
71
71
|
|
72
72
|
before :each do
|
73
73
|
cupfile = directory.cupfile
|
74
|
-
cupfile.stub(:
|
75
|
-
File.should_receive(:read).with(/.*
|
74
|
+
cupfile.stub(:licence).and_return('licence.txt')
|
75
|
+
File.should_receive(:read).with(/.*licence\.txt$/).and_return(licence)
|
76
76
|
end
|
77
77
|
|
78
|
-
it 'should prepend the
|
78
|
+
it 'should prepend the licence unaltered to the output' do
|
79
79
|
process_scripts!
|
80
|
-
File.read(output_file).start_with?(
|
80
|
+
File.read(output_file).start_with?(licence_comment).should be_true
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
@@ -113,13 +113,13 @@ describe Cup::CommandLine do
|
|
113
113
|
File.should exist(path + 'vendor' + 'extra_matchers.js')
|
114
114
|
end
|
115
115
|
|
116
|
-
it 'should create a
|
116
|
+
it 'should create a licence file populated with the year and user as author' do
|
117
117
|
cli.create test_cup_name
|
118
|
-
path = "#{test_cup_name}/
|
118
|
+
path = "#{test_cup_name}/licence.txt"
|
119
119
|
File.should exist(path)
|
120
|
-
|
121
|
-
|
122
|
-
|
120
|
+
licence = File.read path
|
121
|
+
licence.should include Time.now.year.to_s
|
122
|
+
licence.should include ENV['USER']
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
data/spec/cup/cupfile_spec.rb
CHANGED
@@ -42,8 +42,8 @@ describe Cup::Cupfile do
|
|
42
42
|
cupfile.should_not be_valid
|
43
43
|
end
|
44
44
|
|
45
|
-
it 'should be invalid if the
|
46
|
-
cupfile.instance_variable_set :@
|
45
|
+
it 'should be invalid if the licence file is specified but does not exist' do
|
46
|
+
cupfile.instance_variable_set :@licence, 'path/that/is/not/there.txt'
|
47
47
|
cupfile.should_not be_valid
|
48
48
|
end
|
49
49
|
end
|
@@ -152,13 +152,13 @@ describe Cup::Cupfile do
|
|
152
152
|
cupfile.name.should == 'mycup'
|
153
153
|
end
|
154
154
|
|
155
|
-
it 'should allow a
|
155
|
+
it 'should allow a licence file to be set' do
|
156
156
|
|
157
157
|
Cup::Cupfile::DSL.interpret cupfile do
|
158
|
-
|
158
|
+
licence 'licence.txt'
|
159
159
|
end
|
160
160
|
|
161
|
-
cupfile.
|
161
|
+
cupfile.licence.should == 'licence.txt'
|
162
162
|
end
|
163
163
|
|
164
164
|
it 'should allow a before_build block to be set' do
|
data/spec/cup/directory_spec.rb
CHANGED
@@ -65,14 +65,14 @@ describe Cup::Directory do
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
-
describe '#
|
68
|
+
describe '#licence' do
|
69
69
|
|
70
|
-
it 'should be absolute path to
|
71
|
-
directory.
|
70
|
+
it 'should be absolute path to licence.txt' do
|
71
|
+
directory.licence.should == File.expand_path("#{directory.path}/licence.txt")
|
72
72
|
end
|
73
73
|
|
74
|
-
it 'should give a path relative to the
|
75
|
-
directory.
|
74
|
+
it 'should give a path relative to the licence if :relative => true is passed' do
|
75
|
+
directory.licence(:relative => true).should == "licence.txt"
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
data/spec/support/macros.rb
CHANGED
@@ -29,7 +29,7 @@ module Support
|
|
29
29
|
|
30
30
|
touch "#{test_example_cup_name}/build/#{test_example_cup_name}.js"
|
31
31
|
touch "#{test_example_cup_name}/build/#{test_example_cup_name}.min.js"
|
32
|
-
touch "#{test_example_cup_name}/
|
32
|
+
touch "#{test_example_cup_name}/licence.txt"
|
33
33
|
|
34
34
|
%w[vendor lib spec src].each do |dir|
|
35
35
|
path = "#{test_example_cup_name}/#{dir}"
|
data/views/layout.slim
CHANGED
@@ -16,8 +16,8 @@ html
|
|
16
16
|
|
17
17
|
body
|
18
18
|
|
19
|
-
|
20
19
|
#cup_header
|
20
|
+
|
21
21
|
nav
|
22
22
|
ul
|
23
23
|
li
|
@@ -31,7 +31,7 @@ html
|
|
31
31
|
' spec:
|
32
32
|
a href='/spec' src
|
33
33
|
',
|
34
|
-
a href='/spec/
|
34
|
+
a href='/spec/built' built
|
35
35
|
',
|
36
36
|
a href='/spec/minified' minified
|
37
37
|
',
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-12 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152670420 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,21 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: activemodel
|
27
|
-
requirement: &2152332760 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ! '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
33
|
-
type: :runtime
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *2152332760
|
24
|
+
version_requirements: *2152670420
|
36
25
|
- !ruby/object:Gem::Dependency
|
37
26
|
name: rake
|
38
|
-
requirement: &
|
27
|
+
requirement: &2152669960 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
29
|
requirements:
|
41
30
|
- - ! '>='
|
@@ -43,10 +32,10 @@ dependencies:
|
|
43
32
|
version: '0'
|
44
33
|
type: :runtime
|
45
34
|
prerelease: false
|
46
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152669960
|
47
36
|
- !ruby/object:Gem::Dependency
|
48
37
|
name: therubyracer
|
49
|
-
requirement: &
|
38
|
+
requirement: &2152669300 !ruby/object:Gem::Requirement
|
50
39
|
none: false
|
51
40
|
requirements:
|
52
41
|
- - ! '>='
|
@@ -54,10 +43,10 @@ dependencies:
|
|
54
43
|
version: '0'
|
55
44
|
type: :runtime
|
56
45
|
prerelease: false
|
57
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152669300
|
58
47
|
- !ruby/object:Gem::Dependency
|
59
48
|
name: uglifier
|
60
|
-
requirement: &
|
49
|
+
requirement: &2152668620 !ruby/object:Gem::Requirement
|
61
50
|
none: false
|
62
51
|
requirements:
|
63
52
|
- - ! '>='
|
@@ -65,10 +54,10 @@ dependencies:
|
|
65
54
|
version: '0'
|
66
55
|
type: :runtime
|
67
56
|
prerelease: false
|
68
|
-
version_requirements: *
|
57
|
+
version_requirements: *2152668620
|
69
58
|
- !ruby/object:Gem::Dependency
|
70
59
|
name: sinatra
|
71
|
-
requirement: &
|
60
|
+
requirement: &2152667980 !ruby/object:Gem::Requirement
|
72
61
|
none: false
|
73
62
|
requirements:
|
74
63
|
- - ! '>='
|
@@ -76,10 +65,10 @@ dependencies:
|
|
76
65
|
version: '0'
|
77
66
|
type: :runtime
|
78
67
|
prerelease: false
|
79
|
-
version_requirements: *
|
68
|
+
version_requirements: *2152667980
|
80
69
|
- !ruby/object:Gem::Dependency
|
81
70
|
name: slim
|
82
|
-
requirement: &
|
71
|
+
requirement: &2152667280 !ruby/object:Gem::Requirement
|
83
72
|
none: false
|
84
73
|
requirements:
|
85
74
|
- - ! '>='
|
@@ -87,10 +76,10 @@ dependencies:
|
|
87
76
|
version: '0'
|
88
77
|
type: :runtime
|
89
78
|
prerelease: false
|
90
|
-
version_requirements: *
|
79
|
+
version_requirements: *2152667280
|
91
80
|
- !ruby/object:Gem::Dependency
|
92
81
|
name: sass
|
93
|
-
requirement: &
|
82
|
+
requirement: &2152666560 !ruby/object:Gem::Requirement
|
94
83
|
none: false
|
95
84
|
requirements:
|
96
85
|
- - ! '>='
|
@@ -98,10 +87,10 @@ dependencies:
|
|
98
87
|
version: '0'
|
99
88
|
type: :runtime
|
100
89
|
prerelease: false
|
101
|
-
version_requirements: *
|
90
|
+
version_requirements: *2152666560
|
102
91
|
- !ruby/object:Gem::Dependency
|
103
92
|
name: coffee-script
|
104
|
-
requirement: &
|
93
|
+
requirement: &2152665880 !ruby/object:Gem::Requirement
|
105
94
|
none: false
|
106
95
|
requirements:
|
107
96
|
- - ! '>='
|
@@ -109,10 +98,10 @@ dependencies:
|
|
109
98
|
version: '0'
|
110
99
|
type: :runtime
|
111
100
|
prerelease: false
|
112
|
-
version_requirements: *
|
101
|
+
version_requirements: *2152665880
|
113
102
|
- !ruby/object:Gem::Dependency
|
114
103
|
name: yard
|
115
|
-
requirement: &
|
104
|
+
requirement: &2152665340 !ruby/object:Gem::Requirement
|
116
105
|
none: false
|
117
106
|
requirements:
|
118
107
|
- - ! '>='
|
@@ -120,10 +109,21 @@ dependencies:
|
|
120
109
|
version: '0'
|
121
110
|
type: :runtime
|
122
111
|
prerelease: false
|
123
|
-
version_requirements: *
|
112
|
+
version_requirements: *2152665340
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: rack
|
115
|
+
requirement: &2152664660 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - =
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 1.3.3
|
121
|
+
type: :runtime
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *2152664660
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: ruby-debug19
|
126
|
-
requirement: &
|
126
|
+
requirement: &2152663960 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *2152663960
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: rspec
|
137
|
-
requirement: &
|
137
|
+
requirement: &2152663120 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ! '>='
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: '0'
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *2152663120
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: shoulda
|
148
|
-
requirement: &
|
148
|
+
requirement: &2152242940 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ! '>='
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: '0'
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *2152242940
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: statemachine
|
159
|
-
requirement: &
|
159
|
+
requirement: &2152242020 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ! '>='
|
@@ -164,21 +164,10 @@ dependencies:
|
|
164
164
|
version: '0'
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
168
|
-
- !ruby/object:Gem::Dependency
|
169
|
-
name: rack
|
170
|
-
requirement: &2152319180 !ruby/object:Gem::Requirement
|
171
|
-
none: false
|
172
|
-
requirements:
|
173
|
-
- - =
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
version: 1.3.3
|
176
|
-
type: :development
|
177
|
-
prerelease: false
|
178
|
-
version_requirements: *2152319180
|
167
|
+
version_requirements: *2152242020
|
179
168
|
- !ruby/object:Gem::Dependency
|
180
169
|
name: rack-test
|
181
|
-
requirement: &
|
170
|
+
requirement: &2152238560 !ruby/object:Gem::Requirement
|
182
171
|
none: false
|
183
172
|
requirements:
|
184
173
|
- - ! '>='
|
@@ -186,10 +175,10 @@ dependencies:
|
|
186
175
|
version: '0'
|
187
176
|
type: :development
|
188
177
|
prerelease: false
|
189
|
-
version_requirements: *
|
178
|
+
version_requirements: *2152238560
|
190
179
|
- !ruby/object:Gem::Dependency
|
191
180
|
name: thin
|
192
|
-
requirement: &
|
181
|
+
requirement: &2152237380 !ruby/object:Gem::Requirement
|
193
182
|
none: false
|
194
183
|
requirements:
|
195
184
|
- - ! '>='
|
@@ -197,10 +186,10 @@ dependencies:
|
|
197
186
|
version: '0'
|
198
187
|
type: :development
|
199
188
|
prerelease: false
|
200
|
-
version_requirements: *
|
189
|
+
version_requirements: *2152237380
|
201
190
|
- !ruby/object:Gem::Dependency
|
202
191
|
name: sinatra-reloader
|
203
|
-
requirement: &
|
192
|
+
requirement: &2152235940 !ruby/object:Gem::Requirement
|
204
193
|
none: false
|
205
194
|
requirements:
|
206
195
|
- - ! '>='
|
@@ -208,7 +197,7 @@ dependencies:
|
|
208
197
|
version: '0'
|
209
198
|
type: :development
|
210
199
|
prerelease: false
|
211
|
-
version_requirements: *
|
200
|
+
version_requirements: *2152235940
|
212
201
|
description:
|
213
202
|
email:
|
214
203
|
- sjltaylor@gmail.com
|
@@ -260,7 +249,7 @@ files:
|
|
260
249
|
- views/root.slim
|
261
250
|
- views/spec.slim
|
262
251
|
- views/visual.slim
|
263
|
-
homepage:
|
252
|
+
homepage: https://github.com/sjltaylor/cup
|
264
253
|
licenses: []
|
265
254
|
post_install_message:
|
266
255
|
rdoc_options: []
|