static_fm 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +19 -1
- data/VERSION +1 -1
- data/config/static.yml +18 -1
- data/lib/static_fm/installer.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/static_fm/installer_spec.rb +11 -0
- data/static_fm.gemspec +2 -2
- metadata +25 -25
data/README.markdown
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
# static_fm
|
2
2
|
|
3
|
-
A static file manager: install and upgrade vendor assets
|
3
|
+
A static file manager: install and upgrade vendor assets like javascript libraries and css frameworks.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
Install the gem.
|
8
|
+
|
9
|
+
gem install static_fm
|
10
|
+
|
11
|
+
# or with Bundler
|
12
|
+
gem 'static_fm', :group => :development
|
13
|
+
|
14
|
+
|
15
|
+
Download your favorite library to your app.
|
16
|
+
|
17
|
+
$ static install jquery public/javascripts/
|
18
|
+
|
19
|
+
## Why?
|
20
|
+
|
21
|
+
StaticFM aims to be a useful tool for quickly adding common asset libraries and frameworks to your app without having to google for the right version or the URLs.
|
4
22
|
|
5
23
|
## About
|
6
24
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/config/static.yml
CHANGED
@@ -176,4 +176,21 @@
|
|
176
176
|
file_name: "jquery.cycle.js"
|
177
177
|
dependencies:
|
178
178
|
"jquery": "1.3.2"
|
179
|
-
|
179
|
+
|
180
|
+
"bootstrap-sass.css":
|
181
|
+
url: "https://raw.github.com/jlong/sass-twitter-bootstrap/master/bootstrap-{version}.css"
|
182
|
+
description: "Twitter Bootstrap framework converted to SASS"
|
183
|
+
version: "1.1.1"
|
184
|
+
file_name: "bootstrap-sass.css"
|
185
|
+
|
186
|
+
"qunit.js":
|
187
|
+
url: "http://code.jquery.com/qunit/qunit-git.js"
|
188
|
+
description: "Javascript unit testing framework (JS)"
|
189
|
+
version: "1.1.0pre"
|
190
|
+
file_name: "qunit.js"
|
191
|
+
|
192
|
+
"qunit.css":
|
193
|
+
url: "http://code.jquery.com/qunit/qunit-git.css"
|
194
|
+
description: "Javascript unit testing framework (CSS)"
|
195
|
+
version: "1.1.0pre"
|
196
|
+
file_name: "qunit.css"
|
data/lib/static_fm/installer.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -2,6 +2,7 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
2
2
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
3
|
require 'rspec'
|
4
4
|
require 'static_fm'
|
5
|
+
require 'ruby-debug'
|
5
6
|
|
6
7
|
# Requires supporting files with custom matchers and macros, etc,
|
7
8
|
# in ./support/ and its subdirectories.
|
@@ -44,6 +44,17 @@ describe StaticFM::Installer do
|
|
44
44
|
@installer.download
|
45
45
|
end
|
46
46
|
|
47
|
+
it "should default to current directory if no destination specified" do
|
48
|
+
installer = StaticFM::Installer.new(@asset, nil)
|
49
|
+
|
50
|
+
File.should_receive(:open)
|
51
|
+
.with('./backbone-src.js', 'w+')
|
52
|
+
.and_yield(@file)
|
53
|
+
|
54
|
+
@file.should_receive(:write).with("source code")
|
55
|
+
installer.download
|
56
|
+
end
|
57
|
+
|
47
58
|
end
|
48
59
|
|
49
60
|
describe "url" do
|
data/static_fm.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "static_fm"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ross Kaffenberger"]
|
12
|
-
s.date = "2011-
|
12
|
+
s.date = "2011-10-08"
|
13
13
|
s.description = "It's time consuming to look up the URLs to your favorite javascript libraries and css\nframeworks every time you start a new project or need to upgrade to a new version. Static\nFM provides recipes and tasks to speed up the process so you can start using the latest now.\n"
|
14
14
|
s.email = "rosskaff@gmail.com"
|
15
15
|
s.executables = ["static", "static"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: static_fm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-10-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: typhoeus
|
16
|
-
requirement: &
|
16
|
+
requirement: &70168389036940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70168389036940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: ruby-debug
|
27
|
-
requirement: &
|
27
|
+
requirement: &70168389025960 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70168389025960
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: ruby-debug19
|
38
|
-
requirement: &
|
38
|
+
requirement: &70168389025280 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70168389025280
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &70168389024520 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.3.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70168389024520
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: bundler
|
60
|
-
requirement: &
|
60
|
+
requirement: &70168389023720 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.0.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70168389023720
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jeweler
|
71
|
-
requirement: &
|
71
|
+
requirement: &70168389022800 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.6.4
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70168389022800
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rcov
|
82
|
-
requirement: &
|
82
|
+
requirement: &70168389021880 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70168389021880
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: guard
|
93
|
-
requirement: &
|
93
|
+
requirement: &70168389021000 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70168389021000
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: guard-rspec
|
104
|
-
requirement: &
|
104
|
+
requirement: &70168389020340 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70168389020340
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: rb-fsevent
|
115
|
-
requirement: &
|
115
|
+
requirement: &70168389019700 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70168389019700
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: growl_notify
|
126
|
-
requirement: &
|
126
|
+
requirement: &70168389018780 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,7 +131,7 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *70168389018780
|
135
135
|
description: ! 'It''s time consuming to look up the URLs to your favorite javascript
|
136
136
|
libraries and css
|
137
137
|
|
@@ -188,7 +188,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
188
188
|
version: '0'
|
189
189
|
segments:
|
190
190
|
- 0
|
191
|
-
hash:
|
191
|
+
hash: -465838433443776730
|
192
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|