cup 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  *.gem
2
2
  .bundle
3
3
  pkg/*
4
+ development
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cup (0.0.2)
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
- extend FileUtils
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(license_header)
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 license_header
99
- license = File.read(directory.cupfile.license) rescue nil
100
- license.nil? ? '' : "/*\n#{license}\n*/"
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
@@ -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
- license 'license.txt'
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 license_file
67
- root + 'license.txt'
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 get_license
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, sublicense, and/or sell
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.license_file, helper.get_license
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", 'builds to STDOUT'
174
+ desc "concatenate", 'concatenates to STDOUT'
173
175
  def concatenate
174
- $stdout.write Cup.concatenate!
176
+ $stdout.puts Cup.concatenate!
175
177
  end
176
178
 
177
- desc "minify", 'builds to STDOUT'
179
+ desc "minify", 'minifies to STDOUT'
178
180
  def minify
179
- $stdout.write Cup.minify!
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, :license, :before_build, :after_build, :uglifier_options
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 license_file_exists?
60
- unless license.nil? or path.nil?
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 license uglifier_options}.each do |m|
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.errors.full_messages}")
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 license(opts={})
50
- license = "#{cupfile.license}"
51
- opts[:relative] ? license : "#{self.path}/#{license}"
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Cup
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -64,20 +64,20 @@ describe Cup::Builder do
64
64
  File.should exist(output_file)
65
65
  end
66
66
 
67
- context 'when a license file is specified' do
67
+ context 'when a licence file is specified' do
68
68
 
69
- let(:license){"\n\nLICENSE\nFILE\nCONTENT\n\n\n"}
70
- let(:license_comment) {"/*\n" + license + "\n*/"}
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(:license).and_return('license.txt')
75
- File.should_receive(:read).with(/.*license\.txt$/).and_return(license)
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 license unaltered to the output' do
78
+ it 'should prepend the licence unaltered to the output' do
79
79
  process_scripts!
80
- File.read(output_file).start_with?(license_comment).should be_true
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 license file populated with the year and user as author' do
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}/license.txt"
118
+ path = "#{test_cup_name}/licence.txt"
119
119
  File.should exist(path)
120
- license = File.read path
121
- license.should include Time.now.year.to_s
122
- license.should include ENV['USER']
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
 
@@ -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 license file is specified but does not exist' do
46
- cupfile.instance_variable_set :@license, 'path/that/is/not/there.txt'
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 license file to be set' do
155
+ it 'should allow a licence file to be set' do
156
156
 
157
157
  Cup::Cupfile::DSL.interpret cupfile do
158
- license 'license.txt'
158
+ licence 'licence.txt'
159
159
  end
160
160
 
161
- cupfile.license.should == 'license.txt'
161
+ cupfile.licence.should == 'licence.txt'
162
162
  end
163
163
 
164
164
  it 'should allow a before_build block to be set' do
@@ -65,14 +65,14 @@ describe Cup::Directory do
65
65
  end
66
66
  end
67
67
 
68
- describe '#license' do
68
+ describe '#licence' do
69
69
 
70
- it 'should be absolute path to license.txt' do
71
- directory.license.should == File.expand_path("#{directory.path}/license.txt")
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 license if :relative => true is passed' do
75
- directory.license(:relative => true).should == "license.txt"
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
 
@@ -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}/license.txt"
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/concatenated' concatenated
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.3
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: &2152333380 !ruby/object:Gem::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: *2152333380
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: &2152332060 !ruby/object:Gem::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: *2152332060
35
+ version_requirements: *2152669960
47
36
  - !ruby/object:Gem::Dependency
48
37
  name: therubyracer
49
- requirement: &2152331500 !ruby/object:Gem::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: *2152331500
46
+ version_requirements: *2152669300
58
47
  - !ruby/object:Gem::Dependency
59
48
  name: uglifier
60
- requirement: &2152330900 !ruby/object:Gem::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: *2152330900
57
+ version_requirements: *2152668620
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: sinatra
71
- requirement: &2152330100 !ruby/object:Gem::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: *2152330100
68
+ version_requirements: *2152667980
80
69
  - !ruby/object:Gem::Dependency
81
70
  name: slim
82
- requirement: &2152329460 !ruby/object:Gem::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: *2152329460
79
+ version_requirements: *2152667280
91
80
  - !ruby/object:Gem::Dependency
92
81
  name: sass
93
- requirement: &2152328720 !ruby/object:Gem::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: *2152328720
90
+ version_requirements: *2152666560
102
91
  - !ruby/object:Gem::Dependency
103
92
  name: coffee-script
104
- requirement: &2152327820 !ruby/object:Gem::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: *2152327820
101
+ version_requirements: *2152665880
113
102
  - !ruby/object:Gem::Dependency
114
103
  name: yard
115
- requirement: &2152327240 !ruby/object:Gem::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: *2152327240
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: &2152326380 !ruby/object:Gem::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: *2152326380
134
+ version_requirements: *2152663960
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: rspec
137
- requirement: &2152325200 !ruby/object:Gem::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: *2152325200
145
+ version_requirements: *2152663120
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: shoulda
148
- requirement: &2152324400 !ruby/object:Gem::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: *2152324400
156
+ version_requirements: *2152242940
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: statemachine
159
- requirement: &2152320260 !ruby/object:Gem::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: *2152320260
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: &2152318620 !ruby/object:Gem::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: *2152318620
178
+ version_requirements: *2152238560
190
179
  - !ruby/object:Gem::Dependency
191
180
  name: thin
192
- requirement: &2152317800 !ruby/object:Gem::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: *2152317800
189
+ version_requirements: *2152237380
201
190
  - !ruby/object:Gem::Dependency
202
191
  name: sinatra-reloader
203
- requirement: &2152317020 !ruby/object:Gem::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: *2152317020
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: []