suspenders 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/suspenders.gemspec +3 -3
- data/template/files/suspenders_layout.html.erb.erb +0 -1
- data/template/suspenders.rb +5 -2
- data/template/trout/Gemfile +1 -0
- metadata +4 -4
data/suspenders.gemspec
CHANGED
@@ -3,9 +3,9 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
|
6
|
-
s.name
|
7
|
-
s.version
|
8
|
-
s.date
|
6
|
+
s.name = 'suspenders'
|
7
|
+
s.version = '0.2.1'
|
8
|
+
s.date = '2010-12-15'
|
9
9
|
|
10
10
|
s.summary = "Generate a Rails app using thoughtbot's best practices."
|
11
11
|
s.description = <<-HERE
|
@@ -4,7 +4,6 @@
|
|
4
4
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
5
5
|
<title><%= app_name %></title>
|
6
6
|
<%%= stylesheet_link_tag :flutie, 'screen', :media => 'all', :cache => true %>
|
7
|
-
<%%= javascript_include_tag "jquery", "jquery-ui", "prefilled_input", "rails", "application", :cache => true %>
|
8
7
|
<%%= csrf_meta_tag %>
|
9
8
|
</head>
|
10
9
|
<body class="<%%= body_class %>">
|
data/template/suspenders.rb
CHANGED
@@ -33,13 +33,16 @@ end
|
|
33
33
|
|
34
34
|
def download_file(uri_string, destination)
|
35
35
|
uri = URI.parse(uri_string)
|
36
|
-
|
36
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
37
|
+
http.use_ssl = true if uri_string =~ /^https/
|
38
|
+
request = Net::HTTP::Get.new(uri.path)
|
39
|
+
contents = http.request(request).body
|
37
40
|
path = File.join(destination_root, destination)
|
38
41
|
File.open(path, "w") { |file| file.write(contents) }
|
39
42
|
end
|
40
43
|
|
41
44
|
def origin
|
42
|
-
"git://github.com/thoughtbot/suspenders
|
45
|
+
"git://github.com/thoughtbot/suspenders.git"
|
43
46
|
end
|
44
47
|
|
45
48
|
def trout(destination_path)
|
data/template/trout/Gemfile
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: suspenders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- thoughtbot
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-15 00:00:00 -05:00
|
19
19
|
default_executable: suspenders
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|