ubiquo 0.9.0.b8 → 0.9.0.b9
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 +25 -0
- data/VERSION +1 -1
- data/lib/ubiquo.rb +1 -1
- data/lib/ubiquo/template.erb +3 -3
- data/test/ubiquo/generator_test.rb +2 -2
- data/test/ubiquo/options_test.rb +4 -4
- data/ubiquo.gemspec +5 -5
- metadata +33 -60
data/.gitignore
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
## MAC OS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
## TEXTMATE
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
|
8
|
+
## EMACS
|
9
|
+
*~
|
10
|
+
\#*
|
11
|
+
.\#*
|
12
|
+
TAGS
|
13
|
+
|
14
|
+
## VIM
|
15
|
+
*.swp
|
16
|
+
|
17
|
+
## NETBEANS
|
18
|
+
nbproject
|
19
|
+
|
20
|
+
## PROJECT::GENERAL
|
21
|
+
coverage
|
22
|
+
rdoc
|
23
|
+
pkg
|
24
|
+
|
25
|
+
## PROJECT::SPECIFIC
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.0.
|
1
|
+
0.9.0.b9
|
data/lib/ubiquo.rb
CHANGED
@@ -15,7 +15,7 @@ module Ubiquo
|
|
15
15
|
# We need this because sometimes we upgrade edge but no stable
|
16
16
|
options[:rails] = options[:template] == :edge ? '3.2.0.rc2' : '2.3.14'
|
17
17
|
|
18
|
-
unless Gem
|
18
|
+
unless Gem::Specification::find_by_name('rails', options[:rails])
|
19
19
|
$stderr.puts "Sorry ubiquo needs rails #{options[:rails]} to work properly."
|
20
20
|
options[:show_help] = true
|
21
21
|
end
|
data/lib/ubiquo/template.erb
CHANGED
@@ -237,10 +237,10 @@ file 'config/routes.rb', <<-CODE
|
|
237
237
|
#{appname.camelize}::Application.routes.draw do
|
238
238
|
mount Ubiquo::Engine => '/ubiquo'
|
239
239
|
|
240
|
-
|
241
|
-
|
240
|
+
namespace :ubiquo do
|
241
|
+
end
|
242
242
|
|
243
|
-
#
|
243
|
+
# Translate::Routes.translation_ui(map) unless Rails.env.production?
|
244
244
|
end
|
245
245
|
CODE
|
246
246
|
# default rails environment.rb
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require_relative '../helper.rb'
|
2
2
|
|
3
3
|
class TestGenerator < Test::Unit::TestCase
|
4
4
|
|
@@ -12,7 +12,7 @@ class TestGenerator < Test::Unit::TestCase
|
|
12
12
|
assert_match 'choosen_plugin_set = "minimal"', rails_template
|
13
13
|
assert_match 'ubiquo_branch = nil', rails_template
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def test_should_generate_expected_template_from_custom_profile
|
17
17
|
skeleton = File.join(File.dirname(__FILE__), "../fixtures", "template.erb")
|
18
18
|
opts = Options.new(%w[ --custom ubiquo_media myapp ])
|
data/test/ubiquo/options_test.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require_relative '../helper.rb'
|
2
2
|
|
3
3
|
class TestOptions < Test::Unit::TestCase
|
4
4
|
|
@@ -12,7 +12,7 @@ class TestOptions < Test::Unit::TestCase
|
|
12
12
|
@templates = [ :stable, :edge ]
|
13
13
|
@profiles = [ :complete, :minimal ]
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def test_should_set_the_default_options
|
17
17
|
opts = Options.new(%w[ appname ])
|
18
18
|
@defaults.each { |k,v| assert_equal v, opts[k] }
|
@@ -58,11 +58,11 @@ class TestOptions < Test::Unit::TestCase
|
|
58
58
|
assert_equal "r@r.com", opts[:exception_recipient]
|
59
59
|
assert_equal "s@s.com", opts[:sender_address]
|
60
60
|
end
|
61
|
-
|
61
|
+
|
62
62
|
def test_should_be_able_to_add_custom_plugins
|
63
63
|
opts = Options.new(%w[ --custom ubiquo_media myapp ])
|
64
64
|
assert_equal :custom, opts[:profile]
|
65
65
|
assert_equal ["ubiquo_media"].inspect, opts[:plugins].inspect
|
66
66
|
end
|
67
|
-
|
67
|
+
|
68
68
|
end
|
data/ubiquo.gemspec
CHANGED
@@ -5,20 +5,20 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ubiquo"
|
8
|
-
s.version = "0.9.0.
|
8
|
+
s.version = "0.9.0.b9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Albert Callarisa", "Jordi Beltran", "Bernat Foj", "Eric Garc\
|
12
|
-
s.date = "2012-
|
11
|
+
s.authors = ["Albert Callarisa", "Jordi Beltran", "Bernat Foj", "Eric Garc\u{ed}a", "Felip Ladr\u{f3}n", "David Lozano", "Antoni Reina", "Ramon Salvad\u{f3}", "Arnau S\u{e1}nchez"]
|
12
|
+
s.date = "2012-02-15"
|
13
13
|
s.description = "This gem provides a command-line interface to speed up the creation of ubiquo based apps."
|
14
14
|
s.email = "rsalvado@gnuine.com"
|
15
15
|
s.executables = ["ubiquo"]
|
16
16
|
s.extra_rdoc_files = [
|
17
|
-
"LICENSE",
|
18
17
|
"README.rdoc"
|
19
18
|
]
|
20
19
|
s.files = [
|
21
20
|
".document",
|
21
|
+
".gitignore",
|
22
22
|
"LICENSE",
|
23
23
|
"README.rdoc",
|
24
24
|
"Rakefile",
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
]
|
37
37
|
s.homepage = "http://www.ubiquo.me"
|
38
38
|
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = "1.8.
|
39
|
+
s.rubygems_version = "1.8.15"
|
40
40
|
s.summary = "command line application for building ubiquo based applications."
|
41
41
|
|
42
42
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,61 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubiquo
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0.b9
|
5
5
|
prerelease: 6
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
- 0
|
10
|
-
- b
|
11
|
-
- 8
|
12
|
-
version: 0.9.0.b8
|
13
6
|
platform: ruby
|
14
|
-
authors:
|
7
|
+
authors:
|
15
8
|
- Albert Callarisa
|
16
9
|
- Jordi Beltran
|
17
10
|
- Bernat Foj
|
18
|
-
-
|
19
|
-
-
|
11
|
+
- Eric García
|
12
|
+
- Felip Ladrón
|
20
13
|
- David Lozano
|
21
14
|
- Antoni Reina
|
22
|
-
-
|
23
|
-
-
|
15
|
+
- Ramon Salvadó
|
16
|
+
- Arnau Sánchez
|
24
17
|
autorequire:
|
25
18
|
bindir: bin
|
26
19
|
cert_chain: []
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
- !ruby/object:Gem::Dependency
|
20
|
+
date: 2012-02-15 00:00:00.000000000 Z
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
31
23
|
name: rails
|
32
|
-
|
33
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirement: &15840500 !ruby/object:Gem::Requirement
|
34
25
|
none: false
|
35
|
-
requirements:
|
26
|
+
requirements:
|
36
27
|
- - ~>
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
hash: 15424081
|
39
|
-
segments:
|
40
|
-
- 3
|
41
|
-
- 2
|
42
|
-
- 0
|
43
|
-
- rc
|
44
|
-
- 2
|
28
|
+
- !ruby/object:Gem::Version
|
45
29
|
version: 3.2.0.rc2
|
46
30
|
type: :runtime
|
47
|
-
|
48
|
-
|
31
|
+
prerelease: false
|
32
|
+
version_requirements: *15840500
|
33
|
+
description: This gem provides a command-line interface to speed up the creation of
|
34
|
+
ubiquo based apps.
|
49
35
|
email: rsalvado@gnuine.com
|
50
|
-
executables:
|
36
|
+
executables:
|
51
37
|
- ubiquo
|
52
38
|
extensions: []
|
53
|
-
|
54
|
-
extra_rdoc_files:
|
55
|
-
- LICENSE
|
39
|
+
extra_rdoc_files:
|
56
40
|
- README.rdoc
|
57
|
-
files:
|
41
|
+
files:
|
58
42
|
- .document
|
43
|
+
- .gitignore
|
59
44
|
- LICENSE
|
60
45
|
- README.rdoc
|
61
46
|
- Rakefile
|
@@ -72,38 +57,26 @@ files:
|
|
72
57
|
- ubiquo.gemspec
|
73
58
|
homepage: http://www.ubiquo.me
|
74
59
|
licenses: []
|
75
|
-
|
76
60
|
post_install_message:
|
77
61
|
rdoc_options: []
|
78
|
-
|
79
|
-
require_paths:
|
62
|
+
require_paths:
|
80
63
|
- lib
|
81
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
65
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
|
88
|
-
- 0
|
89
|
-
version: "0"
|
90
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
71
|
none: false
|
92
|
-
requirements:
|
93
|
-
- -
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
hash: 25
|
96
|
-
segments:
|
97
|
-
- 1
|
98
|
-
- 3
|
99
|
-
- 1
|
72
|
+
requirements:
|
73
|
+
- - ! '>'
|
74
|
+
- !ruby/object:Gem::Version
|
100
75
|
version: 1.3.1
|
101
76
|
requirements: []
|
102
|
-
|
103
77
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.8.
|
78
|
+
rubygems_version: 1.8.15
|
105
79
|
signing_key:
|
106
80
|
specification_version: 3
|
107
81
|
summary: command line application for building ubiquo based applications.
|
108
82
|
test_files: []
|
109
|
-
|