mockup-rails 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/Gemfile +2 -1
- data/app/assets/images/mockup/{rails/.gitkeep → .gitkeep} +0 -0
- data/app/assets/javascripts/mockup/{rails/application.js → application.js} +0 -0
- data/app/assets/stylesheets/mockup/{rails/application.css → application.css} +0 -0
- data/app/controllers/mockup/application_controller.rb +4 -0
- data/app/controllers/mockup/mockup_controller.rb +12 -0
- data/app/helpers/mockup/application_helper.rb +4 -0
- data/app/helpers/mockup/mockup_helper.rb +15 -0
- data/app/views/layouts/mockup/{rails/application.html.erb → application.html.erb} +0 -0
- data/build.version +1 -1
- data/config/routes.rb +2 -2
- data/lib/generators/mockup/install_generator.rb +13 -0
- data/lib/mockup-rails.rb +2 -1
- data/lib/mockup/engine.rb +5 -0
- data/lib/mockup/{rails/version.rb → version.rb} +2 -2
- data/mockup-rails.gemspec +3 -3
- data/test/dummy/config/database.yml +3 -3
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/db/schema.rb +16 -0
- data/test/mockup-rails_test.rb +1 -1
- metadata +22 -19
- data/app/controllers/mockup/rails/application_controller.rb +0 -6
- data/app/controllers/mockup/rails/mockup_controller.rb +0 -13
- data/app/helpers/mockup/rails/application_helper.rb +0 -6
- data/app/helpers/mockup/rails/mockup_helper.rb +0 -7
- data/lib/mockup/rails.rb +0 -7
- data/lib/mockup/rails/engine.rb +0 -7
data/.travis.yml
ADDED
data/Gemfile
CHANGED
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Mockup
|
2
|
+
module MockupHelper
|
3
|
+
def link_to_mockup display, name=display, *args
|
4
|
+
link_to display, mockup_path(name), *args
|
5
|
+
end
|
6
|
+
|
7
|
+
def current_mockup_page? *names
|
8
|
+
# names = [names] unless names.respond_to? :each
|
9
|
+
included = names.inject(false) {|ans, name|
|
10
|
+
ans ||= (url_for(action: action_name) == mockup_path(name)) }
|
11
|
+
included ? "current" : ''
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
File without changes
|
data/build.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/config/routes.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
Mockup::
|
2
|
-
match '(:action)' => 'mockup'
|
1
|
+
Mockup::Engine.routes.draw do
|
2
|
+
match '(:action)' => 'mockup', as: :mockup
|
3
3
|
end
|
data/lib/mockup-rails.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require
|
1
|
+
require "mockup/engine"
|
2
|
+
require "mockup/version"
|
@@ -1,6 +1,6 @@
|
|
1
|
-
module
|
1
|
+
module Mockup
|
2
2
|
module Version
|
3
|
-
MAJOR,MINOR,TINY = File.read(File.join(File.dirname(__FILE__), '
|
3
|
+
MAJOR,MINOR,TINY = File.read(File.join(File.dirname(__FILE__), '../../build.version')).split('.')
|
4
4
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
5
5
|
end
|
6
6
|
|
data/mockup-rails.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
$:.push File.expand_path("../lib", __FILE__)
|
2
2
|
|
3
3
|
# Maintain your gem's version:
|
4
|
-
require "mockup/
|
4
|
+
require "mockup/version"
|
5
5
|
|
6
6
|
# Describe your gem and declare its dependencies:
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "mockup-rails"
|
9
|
-
s.version =
|
9
|
+
s.version = Mockup.version
|
10
10
|
s.authors = ["Ranmocy Sheng"]
|
11
11
|
s.email = ["ranmocy@gmail.com"]
|
12
12
|
s.homepage = "https://github.com/ranmocy/mockup-rails"
|
@@ -16,9 +16,9 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
19
20
|
# s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
|
20
21
|
# s.test_files = Dir["test/**/*"]
|
21
|
-
# s.require_paths = ["lib"]
|
22
22
|
|
23
23
|
s.add_dependency "rails", "~> 3.2"
|
24
24
|
# s.add_dependency "jquery-rails"
|
@@ -5,7 +5,7 @@
|
|
5
5
|
# gem 'sqlite3'
|
6
6
|
development:
|
7
7
|
adapter: sqlite3
|
8
|
-
database:
|
8
|
+
database: ":memory:"
|
9
9
|
pool: 5
|
10
10
|
timeout: 5000
|
11
11
|
|
@@ -14,12 +14,12 @@ development:
|
|
14
14
|
# Do not set this db to the same as development or production.
|
15
15
|
test:
|
16
16
|
adapter: sqlite3
|
17
|
-
database:
|
17
|
+
database: ":memory:"
|
18
18
|
pool: 5
|
19
19
|
timeout: 5000
|
20
20
|
|
21
21
|
production:
|
22
22
|
adapter: sqlite3
|
23
|
-
database:
|
23
|
+
database: ":memory:"
|
24
24
|
pool: 5
|
25
25
|
timeout: 5000
|
data/test/dummy/config/routes.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 0) do
|
15
|
+
|
16
|
+
end
|
data/test/mockup-rails_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mockup-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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: 2012-06-
|
12
|
+
date: 2012-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70129615066380 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70129615066380
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &70129615065980 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70129615065980
|
36
36
|
description: Mockup toolkit for rapidly building visible mockups to showoff your demo
|
37
37
|
by Rails.
|
38
38
|
email:
|
@@ -42,25 +42,26 @@ extensions: []
|
|
42
42
|
extra_rdoc_files: []
|
43
43
|
files:
|
44
44
|
- .gitignore
|
45
|
+
- .travis.yml
|
45
46
|
- Gemfile
|
46
47
|
- MIT-LICENSE
|
47
48
|
- README.rdoc
|
48
49
|
- Rakefile
|
49
|
-
- app/assets/images/mockup
|
50
|
-
- app/assets/javascripts/mockup/
|
51
|
-
- app/assets/stylesheets/mockup/
|
52
|
-
- app/controllers/mockup/
|
53
|
-
- app/controllers/mockup/
|
54
|
-
- app/helpers/mockup/
|
55
|
-
- app/helpers/mockup/
|
56
|
-
- app/views/layouts/mockup/
|
50
|
+
- app/assets/images/mockup/.gitkeep
|
51
|
+
- app/assets/javascripts/mockup/application.js
|
52
|
+
- app/assets/stylesheets/mockup/application.css
|
53
|
+
- app/controllers/mockup/application_controller.rb
|
54
|
+
- app/controllers/mockup/mockup_controller.rb
|
55
|
+
- app/helpers/mockup/application_helper.rb
|
56
|
+
- app/helpers/mockup/mockup_helper.rb
|
57
|
+
- app/views/layouts/mockup/application.html.erb
|
57
58
|
- app/views/mockup/todo.html.erb
|
58
59
|
- build.version
|
59
60
|
- config/routes.rb
|
61
|
+
- lib/generators/mockup/install_generator.rb
|
60
62
|
- lib/mockup-rails.rb
|
61
|
-
- lib/mockup/
|
62
|
-
- lib/mockup/
|
63
|
-
- lib/mockup/rails/version.rb
|
63
|
+
- lib/mockup/engine.rb
|
64
|
+
- lib/mockup/version.rb
|
64
65
|
- lib/tasks/mockup-rails_tasks.rake
|
65
66
|
- mockup-rails.gemspec
|
66
67
|
- script/rails
|
@@ -89,6 +90,7 @@ files:
|
|
89
90
|
- test/dummy/config/initializers/wrap_parameters.rb
|
90
91
|
- test/dummy/config/locales/en.yml
|
91
92
|
- test/dummy/config/routes.rb
|
93
|
+
- test/dummy/db/schema.rb
|
92
94
|
- test/dummy/lib/assets/.gitkeep
|
93
95
|
- test/dummy/log/.gitkeep
|
94
96
|
- test/dummy/public/404.html
|
@@ -113,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
115
|
version: '0'
|
114
116
|
segments:
|
115
117
|
- 0
|
116
|
-
hash:
|
118
|
+
hash: 3525196771214788915
|
117
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
120
|
none: false
|
119
121
|
requirements:
|
@@ -122,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
124
|
version: '0'
|
123
125
|
segments:
|
124
126
|
- 0
|
125
|
-
hash:
|
127
|
+
hash: 3525196771214788915
|
126
128
|
requirements: []
|
127
129
|
rubyforge_project:
|
128
130
|
rubygems_version: 1.8.16
|
@@ -155,6 +157,7 @@ test_files:
|
|
155
157
|
- test/dummy/config/initializers/wrap_parameters.rb
|
156
158
|
- test/dummy/config/locales/en.yml
|
157
159
|
- test/dummy/config/routes.rb
|
160
|
+
- test/dummy/db/schema.rb
|
158
161
|
- test/dummy/lib/assets/.gitkeep
|
159
162
|
- test/dummy/log/.gitkeep
|
160
163
|
- test/dummy/public/404.html
|
data/lib/mockup/rails.rb
DELETED