cup 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/.versionify ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in cup.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,6 @@
1
+ Cup
2
+ ===
3
+
4
+ ## Creating a new javascript library
5
+
6
+ `cup <name>`
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'versionify'
3
+ Versionify.install_rake_tasks
data/bin/cup ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ require 'thor'
3
+ require 'cup'
4
+
5
+ class CupCli < Thor
6
+
7
+ desc "create NAME", "Creates a new project structure with the specified name. Can also be called like: cup <name> [options]"
8
+ method_option 'no-jquery'
9
+ def create(name)
10
+ puts "create: #{name}"
11
+ end
12
+
13
+ def method_missing (*params)
14
+ params.length == 1 ? create(*params) : super
15
+ end
16
+
17
+ end
18
+
19
+ CupCli.start
data/cup.gemspec ADDED
@@ -0,0 +1,26 @@
1
+ # -*- encoding: utf-8 -*-
2
+ #$:.push File.expand_path('../lib', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'cup'
6
+ s.version = '0.0.1' #Versionify.version
7
+ s.authors = ['Sam Taylor']
8
+ s.email = ['sjltaylor@gmail.com']
9
+ s.homepage = ''
10
+ s.summary = 'ruby based tools for developing javascript libraries'
11
+ # s.description = %q{TODO: Write a gem description}
12
+
13
+ s.add_dependency 'rake'
14
+ s.add_dependency 'sinatra'
15
+ s.add_dependency 'versionify'
16
+ s.add_dependency 'uglifier'
17
+ s.add_dependency 'therubyracer'
18
+ s.add_dependency 'thor'
19
+
20
+ s.rubyforge_project = 'cup'
21
+
22
+ s.files = `git ls-files`.split("\n")
23
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
24
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
25
+ s.require_paths = ['lib']
26
+ end
data/lib/cup.rb ADDED
@@ -0,0 +1,5 @@
1
+ module Cup
2
+ def create name, options={}
3
+
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe CupCli do
4
+ describe '#create' do
5
+ let(:cli) {CupCli.new}
6
+ it 'should be run if no other task is specified and an argument is passed' do
7
+
8
+
9
+ cli.invoke
10
+ end
11
+ end
12
+ end
@@ -0,0 +1 @@
1
+ $:.push File.expand_path('../lib', __FILE__)
metadata ADDED
@@ -0,0 +1,124 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cup
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Sam Taylor
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-09-23 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &2154194200 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2154194200
25
+ - !ruby/object:Gem::Dependency
26
+ name: sinatra
27
+ requirement: &2154193760 !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: *2154193760
36
+ - !ruby/object:Gem::Dependency
37
+ name: versionify
38
+ requirement: &2154193340 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *2154193340
47
+ - !ruby/object:Gem::Dependency
48
+ name: uglifier
49
+ requirement: &2154192920 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *2154192920
58
+ - !ruby/object:Gem::Dependency
59
+ name: therubyracer
60
+ requirement: &2154192500 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *2154192500
69
+ - !ruby/object:Gem::Dependency
70
+ name: thor
71
+ requirement: &2154192080 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *2154192080
80
+ description:
81
+ email:
82
+ - sjltaylor@gmail.com
83
+ executables:
84
+ - cup
85
+ extensions: []
86
+ extra_rdoc_files: []
87
+ files:
88
+ - .gitignore
89
+ - .versionify
90
+ - Gemfile
91
+ - README.md
92
+ - Rakefile
93
+ - bin/cup
94
+ - cup.gemspec
95
+ - lib/cup.rb
96
+ - spec/cup_cli.spec.rb
97
+ - spec/spec_helper.rb
98
+ homepage: ''
99
+ licenses: []
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubyforge_project: cup
118
+ rubygems_version: 1.8.5
119
+ signing_key:
120
+ specification_version: 3
121
+ summary: ruby based tools for developing javascript libraries
122
+ test_files:
123
+ - spec/cup_cli.spec.rb
124
+ - spec/spec_helper.rb