semantic-rails-ui 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.envrc +1 -0
- data/.gitignore +17 -0
- data/.ruby-version +1 -0
- data/.simplecov +19 -0
- data/.travis.yml +6 -0
- data/Gemfile +4 -0
- data/LICENCE.txt +21 -0
- data/README.md +52 -0
- data/Rakefile +44 -0
- data/app/assets/images/semantic-rails-ui/.keep +0 -0
- data/app/assets/javascripts/semantic-rails-ui.js +15 -0
- data/app/assets/javascripts/semantic-rails-ui/menu.coffee +3 -0
- data/app/assets/javascripts/semantic-rails-ui/message.coffee +2 -0
- data/app/assets/stylesheets/semantic-rails-ui.sass +2 -0
- data/app/assets/stylesheets/semantic-rails-ui/.keep +0 -0
- data/app/helpers/semantic_rails_ui/ui_helper.rb +13 -0
- data/bin/console +14 -0
- data/bin/rails +14 -0
- data/bin/rake +16 -0
- data/bin/setup +8 -0
- data/config/initializers/simple_form.rb +195 -0
- data/lib/semantic-rails-ui.rb +5 -0
- data/lib/semantic-rails-ui/engine.rb +12 -0
- data/lib/semantic-rails-ui/version.rb +3 -0
- data/semantic-rails-ui.gemspec +30 -0
- metadata +223 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e1dd48b12b6bc61b458c32e225e82b3fb3fe3a4f
|
4
|
+
data.tar.gz: ddd68df407b59777cc1a2ffdb924e09c5273e345
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5db74ac2b66e4b8a403be3ae5b47cdfec8d263ad07f2c00282e7316a7ed88342de6b136139aee43631b17c664a2777412dcaba5b5aba6695238a1f72ab4911d4
|
7
|
+
data.tar.gz: 22a9271187e3ad2e9cceef3dc7428f2dc79140ae1d7ded7dd2841ce9e21d14d9a65ab8906e4faaa2c8f9e23ad4578a7f693b04809c4b3bef940211b852d07531
|
data/.envrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
PATH_add bin
|
data/.gitignore
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/test/coverage/
|
7
|
+
/doc/
|
8
|
+
/pkg/
|
9
|
+
/spec/reports/
|
10
|
+
/tmp/
|
11
|
+
|
12
|
+
test/dummy/db/*.sqlite3
|
13
|
+
test/dummy/db/*.sqlite3-journal
|
14
|
+
test/dummy/log/*.log
|
15
|
+
test/dummy/tmp/
|
16
|
+
test/dummy/.sass-cache
|
17
|
+
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.0
|
data/.simplecov
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
SimpleCov.start do
|
2
|
+
coverage_dir 'test/coverage'
|
3
|
+
|
4
|
+
load_profile 'rails'
|
5
|
+
|
6
|
+
add_group 'Controllers', 'app/controllers'
|
7
|
+
add_group 'Mailers', 'app/mailers'
|
8
|
+
add_group 'Models', 'app/models'
|
9
|
+
add_group 'Helpers', 'app/helpers'
|
10
|
+
add_group 'Libraries', 'lib'
|
11
|
+
|
12
|
+
add_filter 'db'
|
13
|
+
add_filter 'test'
|
14
|
+
add_filter 'config'
|
15
|
+
add_filter 'vendor'
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENCE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Igor Jancev
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# SemanticRailsUi
|
2
|
+
|
3
|
+
[![Gem Version](http://img.shields.io/gem/v/semantic-rails-ui.svg)][gem]
|
4
|
+
[![Build Status](http://img.shields.io/travis/igorj/semantic-rails-ui.svg)][travis]
|
5
|
+
[![Dependency Status](http://img.shields.io/gemnasium/igorj/semantic-rails-ui.svg)][gemnasium]
|
6
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/igorj/semantic-rails-ui.svg)][codeclimate]
|
7
|
+
[![Coverage Status](http://img.shields.io/coveralls/igorj/semantic-rails-ui.svg)][coveralls]
|
8
|
+
|
9
|
+
[gem]: https://rubygems.org/gems/semantic-rails-ui
|
10
|
+
[travis]: http://travis-ci.org/igorj/semantic-rails-ui
|
11
|
+
[gemnasium]: https://gemnasium.com/igorj/semantic-rails-ui
|
12
|
+
[codeclimate]: https://codeclimate.com/github/igorj/semantic-rails-ui
|
13
|
+
[coveralls]: https://coveralls.io/r/igorj/semantic-rails-ui
|
14
|
+
|
15
|
+
|
16
|
+
TODO Description of SemanticRailsUi
|
17
|
+
|
18
|
+
## Installation
|
19
|
+
|
20
|
+
Add this line to your application's Gemfile:
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
gem 'semantic-rails-ui'
|
24
|
+
```
|
25
|
+
|
26
|
+
And then execute:
|
27
|
+
|
28
|
+
$ bundle
|
29
|
+
|
30
|
+
Or install it yourself as:
|
31
|
+
|
32
|
+
$ gem install semantic-rails-ui
|
33
|
+
|
34
|
+
## Usage
|
35
|
+
|
36
|
+
TODO Describe how to use this gem
|
37
|
+
|
38
|
+
## Development
|
39
|
+
|
40
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
41
|
+
|
42
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
43
|
+
|
44
|
+
To release a new version, run `bundle exec rake release_patch`, `bundle exec rake release_minor`, oder `bundle exec rake release_major`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to https://rubygems.org.
|
45
|
+
|
46
|
+
## Contributing
|
47
|
+
|
48
|
+
Bug reports and pull requests are welcome on github at https://github.com/igorj/semantic-rails-ui.
|
49
|
+
|
50
|
+
## License
|
51
|
+
|
52
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rake/testtask"
|
3
|
+
|
4
|
+
Rake::TestTask.new(:test) do |t|
|
5
|
+
t.libs << "test"
|
6
|
+
t.libs << "lib"
|
7
|
+
t.test_files = FileList['test/**/*_test.rb']
|
8
|
+
end
|
9
|
+
|
10
|
+
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
11
|
+
load 'rails/tasks/engine.rake'
|
12
|
+
|
13
|
+
load 'rails/tasks/statistics.rake'
|
14
|
+
|
15
|
+
|
16
|
+
task :patch do
|
17
|
+
system "gem bump --tag"
|
18
|
+
end
|
19
|
+
|
20
|
+
task :minor do
|
21
|
+
system "gem bump --version minor --tag"
|
22
|
+
end
|
23
|
+
|
24
|
+
task :major do
|
25
|
+
system "gem bump --version major --tag"
|
26
|
+
end
|
27
|
+
|
28
|
+
task :publish => [:build] do
|
29
|
+
$VERBOSE = nil
|
30
|
+
load 'semantic-rails-ui/version.rb'
|
31
|
+
system "gem push pkg/semantic-rails-ui-#{SemanticRailsUi::VERSION}.gem"
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Bump patch version, create git tag, build the gem and release to geminabox (default)"
|
35
|
+
task :release_patch => [:test, :patch, :publish]
|
36
|
+
|
37
|
+
desc "Bump minor version, create git tag, build the gem and release to geminabox"
|
38
|
+
task :release_minor => [:test, :minor, :publish]
|
39
|
+
|
40
|
+
desc "Bump major version, create git tag, build the gem and release to geminabox"
|
41
|
+
task :release_major => [:test, :major, :publish]
|
42
|
+
|
43
|
+
|
44
|
+
task default: :test
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require semantic-ui
|
14
|
+
//= require semantic-rails-ui/menu
|
15
|
+
//= require semantic-rails-ui/message
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module SemanticRailsUi
|
2
|
+
module UiHelper
|
3
|
+
# <h1 class="ui header">
|
4
|
+
# <i class="ICON_NAME icon"></i>
|
5
|
+
# <div class="content">TITLE</div>
|
6
|
+
# </h1>
|
7
|
+
def ui_icon_header(title, icon_name)
|
8
|
+
content_tag :h1, class: "ui header" do
|
9
|
+
content_tag(:i, '', class: "#{icon_name} icon") + content_tag(:div, title, class: "content")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "semantic-rails-ui"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/rails
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
|
3
|
+
|
4
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/semantic-rails-ui/engine', __FILE__)
|
6
|
+
|
7
|
+
# Set up gems listed in the Gemfile.
|
8
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
9
|
+
require 'bundler/setup'
|
10
|
+
|
11
|
+
require 'rails/all'
|
12
|
+
require 'rails/engine/commands'
|
13
|
+
|
14
|
+
load Gem.bin_path("rails", "rails")
|
data/bin/rake
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rake' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require "pathname"
|
10
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require "rubygems"
|
14
|
+
require "bundler/setup"
|
15
|
+
|
16
|
+
load Gem.bin_path("rake", "rake")
|
data/bin/setup
ADDED
@@ -0,0 +1,195 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
# Wrappers are used by the form builder to generate a
|
4
|
+
# complete input. You can remove any component from the
|
5
|
+
# wrapper, change the order or even add your own to the
|
6
|
+
# stack. The options given below are used to wrap the
|
7
|
+
# whole input.
|
8
|
+
config.wrappers :default, class: :field,
|
9
|
+
hint_class: :field_with_hint, error_class: "field error" do |b|
|
10
|
+
## Extensions enabled by default
|
11
|
+
# Any of these extensions can be disabled for a
|
12
|
+
# given input by passing: `f.input EXTENSION_NAME => false`.
|
13
|
+
# You can make any of these extensions optional by
|
14
|
+
# renaming `b.use` to `b.optional`.
|
15
|
+
|
16
|
+
# Determines whether to use HTML5 (:email, :url, ...)
|
17
|
+
# and required attributes
|
18
|
+
b.use :html5
|
19
|
+
|
20
|
+
# Calculates placeholders automatically from I18n
|
21
|
+
# You can also pass a string as f.input placeholder: "Placeholder"
|
22
|
+
b.use :placeholder
|
23
|
+
|
24
|
+
## Optional extensions
|
25
|
+
# They are disabled unless you pass `f.input EXTENSION_NAME => true`
|
26
|
+
# to the input. If so, they will retrieve the values from the model
|
27
|
+
# if any exists. If you want to enable any of those
|
28
|
+
# extensions by default, you can change `b.optional` to `b.use`.
|
29
|
+
|
30
|
+
# Calculates maxlength from length validations for string inputs
|
31
|
+
b.optional :maxlength
|
32
|
+
|
33
|
+
# Calculates pattern from format validations for string inputs
|
34
|
+
b.optional :pattern
|
35
|
+
|
36
|
+
# Calculates min and max from length validations for numeric inputs
|
37
|
+
b.optional :min_max
|
38
|
+
|
39
|
+
# Calculates readonly automatically from readonly attributes
|
40
|
+
b.optional :readonly
|
41
|
+
|
42
|
+
## Inputs
|
43
|
+
b.use :label_input
|
44
|
+
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
45
|
+
b.use :error, wrap_with: { tag: :div, class: "ui basic red pointing prompt label transition visible" }
|
46
|
+
|
47
|
+
## full_messages_for
|
48
|
+
# If you want to display the full error message for the attribute, you can
|
49
|
+
# use the component :full_error, like:
|
50
|
+
#
|
51
|
+
# b.use :full_error, wrap_with: { tag: :span, class: :error }
|
52
|
+
end
|
53
|
+
|
54
|
+
config.wrappers :semantic_select, tag: 'div', class: "field", error_class: 'error', hint_class: 'with_hint' do |b|
|
55
|
+
b.use :html5
|
56
|
+
b.use :label
|
57
|
+
b.use :input, class: "ui fluid dropdown"
|
58
|
+
end
|
59
|
+
|
60
|
+
config.wrappers :semantic_checkbox, tag: 'div', class: "field", error_class: 'error', hint_class: 'with_hint' do |b|
|
61
|
+
b.use :html5
|
62
|
+
b.wrapper tag: 'div', class: 'ui checkbox' do |input|
|
63
|
+
input.use :input
|
64
|
+
input.use :label
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
config.wrappers :semantic_checkbox_slider, tag: 'div', class: "field", error_class: 'error', hint_class: 'with_hint' do |b|
|
69
|
+
b.use :html5
|
70
|
+
b.wrapper tag: 'div', class: 'ui slider checkbox' do |input|
|
71
|
+
input.use :input
|
72
|
+
input.use :label
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
config.wrappers :semantic_checkbox_toggle, tag: 'div', class: "field", error_class: 'error', hint_class: 'with_hint' do |b|
|
77
|
+
b.use :html5
|
78
|
+
b.wrapper tag: 'div', class: 'ui toggle checkbox' do |input|
|
79
|
+
input.use :input
|
80
|
+
input.use :label
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# The default wrapper to be used by the FormBuilder.
|
85
|
+
config.default_wrapper = :default
|
86
|
+
|
87
|
+
# Define the way to render check boxes / radio buttons with labels.
|
88
|
+
# Defaults to :nested for bootstrap config.
|
89
|
+
# inline: input + label
|
90
|
+
# nested: label > input
|
91
|
+
config.boolean_style = :inline
|
92
|
+
|
93
|
+
# Default class for buttons
|
94
|
+
config.button_class = 'ui primary button'
|
95
|
+
|
96
|
+
# Method used to tidy up errors. Specify any Rails Array method.
|
97
|
+
# :first lists the first message for each field.
|
98
|
+
# Use :to_sentence to list all errors for each field.
|
99
|
+
# config.error_method = :first
|
100
|
+
|
101
|
+
# Default tag used for error notification helper.
|
102
|
+
config.error_notification_tag = :div
|
103
|
+
|
104
|
+
# CSS class to add for error notification helper.
|
105
|
+
config.error_notification_class = 'error_notification'
|
106
|
+
|
107
|
+
# ID to add for error notification helper.
|
108
|
+
# config.error_notification_id = nil
|
109
|
+
|
110
|
+
# Series of attempts to detect a default label method for collection.
|
111
|
+
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
112
|
+
|
113
|
+
# Series of attempts to detect a default value method for collection.
|
114
|
+
# config.collection_value_methods = [ :id, :to_s ]
|
115
|
+
|
116
|
+
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
117
|
+
# config.collection_wrapper_tag = nil
|
118
|
+
|
119
|
+
# You can define the class to use on all collection wrappers. Defaulting to none.
|
120
|
+
# config.collection_wrapper_class = nil
|
121
|
+
|
122
|
+
# You can wrap each item in a collection of radio/check boxes with a tag,
|
123
|
+
# defaulting to :span.
|
124
|
+
# config.item_wrapper_tag = :span
|
125
|
+
|
126
|
+
# You can define a class to use in all item wrappers. Defaulting to none.
|
127
|
+
# config.item_wrapper_class = nil
|
128
|
+
|
129
|
+
# How the label text should be generated altogether with the required text.
|
130
|
+
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
|
131
|
+
|
132
|
+
# You can define the class to use on all labels. Default is nil.
|
133
|
+
# config.label_class = nil
|
134
|
+
|
135
|
+
# You can define the default class to be used on forms. Can be overriden
|
136
|
+
# with `html: { :class }`. Defaulting to none.
|
137
|
+
config.default_form_class = "ui form"
|
138
|
+
|
139
|
+
# You can define which elements should obtain additional classes
|
140
|
+
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
141
|
+
|
142
|
+
# Whether attributes are required by default (or not). Default is true.
|
143
|
+
# config.required_by_default = true
|
144
|
+
|
145
|
+
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
|
146
|
+
# These validations are enabled in SimpleForm's internal config but disabled by default
|
147
|
+
# in this configuration, which is recommended due to some quirks from different browsers.
|
148
|
+
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
|
149
|
+
# change this configuration to true.
|
150
|
+
config.browser_validations = false
|
151
|
+
|
152
|
+
# Collection of methods to detect if a file type was given.
|
153
|
+
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
154
|
+
|
155
|
+
# Custom mappings for input types. This should be a hash containing a regexp
|
156
|
+
# to match as key, and the input type that will be used when the field name
|
157
|
+
# matches the regexp as value.
|
158
|
+
# config.input_mappings = { /count/ => :integer }
|
159
|
+
|
160
|
+
# Custom wrappers for input types. This should be a hash containing an input
|
161
|
+
# type as key and the wrapper that will be used for all inputs with specified type.
|
162
|
+
config.wrapper_mappings = { boolean: :semantic_checkbox, select: :semantic_select }
|
163
|
+
|
164
|
+
# Namespaces where SimpleForm should look for custom input classes that
|
165
|
+
# override default inputs.
|
166
|
+
# config.custom_inputs_namespaces << "CustomInputs"
|
167
|
+
|
168
|
+
# Default priority for time_zone inputs.
|
169
|
+
# config.time_zone_priority = nil
|
170
|
+
|
171
|
+
# Default priority for country inputs.
|
172
|
+
# config.country_priority = nil
|
173
|
+
|
174
|
+
# When false, do not use translations for labels.
|
175
|
+
# config.translate_labels = true
|
176
|
+
|
177
|
+
# Automatically discover new inputs in Rails' autoload path.
|
178
|
+
# config.inputs_discovery = true
|
179
|
+
|
180
|
+
# Cache SimpleForm inputs discovery
|
181
|
+
# config.cache_discovery = !Rails.env.development?
|
182
|
+
|
183
|
+
# Default class for inputs
|
184
|
+
# config.input_class = nil
|
185
|
+
|
186
|
+
# Define the default class of the input wrapper of the boolean input.
|
187
|
+
config.boolean_label_class = 'checkbox'
|
188
|
+
|
189
|
+
# Defines if the default input wrapper class should be included in radio
|
190
|
+
# collection wrappers.
|
191
|
+
# config.include_default_input_wrapper_class = true
|
192
|
+
|
193
|
+
# Defines which i18n scope will be used in Simple Form.
|
194
|
+
# config.i18n_scope = 'simple_form'
|
195
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'semantic-ui-sass'
|
2
|
+
require 'simple_form'
|
3
|
+
|
4
|
+
module SemanticRailsUi
|
5
|
+
class Engine < ::Rails::Engine
|
6
|
+
initializer :append_dependent_assets_path, :group => :all do |app|
|
7
|
+
engine_root = Semantic::Ui::Sass::Rails::Engine.root
|
8
|
+
app.config.assets.paths.push File.join(engine_root, 'app/assets/javascripts')
|
9
|
+
app.config.assets.paths.push File.join(engine_root, 'app/assets/stylesheets')
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
2
|
+
require 'semantic-rails-ui/version'
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "semantic-rails-ui"
|
6
|
+
spec.version = SemanticRailsUi::VERSION
|
7
|
+
spec.authors = ["Igor Jancev"]
|
8
|
+
spec.email = ["igor@masterybits.com"]
|
9
|
+
spec.summary = %q{Rails helpers for the semantic-ui css framework}
|
10
|
+
spec.description = %q{Create beautiful hrml layouts with semantic-ui, simple_form and rails}
|
11
|
+
spec.homepage = "https://github.com/igorj/semantic-rails-ui"
|
12
|
+
spec.license = "MIT"
|
13
|
+
|
14
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
|
15
|
+
spec.require_paths = ["lib"]
|
16
|
+
|
17
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
18
|
+
spec.add_development_dependency "rake", "~> 11.1"
|
19
|
+
spec.add_development_dependency "minitest", "~> 5.8"
|
20
|
+
spec.add_development_dependency "minitest-reporters", "~> 1.1"
|
21
|
+
spec.add_development_dependency "gem-release", "~> 0.7"
|
22
|
+
spec.add_development_dependency "geminabox", "~> 0.13"
|
23
|
+
spec.add_development_dependency "coveralls"
|
24
|
+
|
25
|
+
spec.add_development_dependency "sqlite3"
|
26
|
+
|
27
|
+
spec.add_dependency "rails", "~> 4.2.6"
|
28
|
+
spec.add_dependency "semantic-ui-sass", "~> 2.1.8"
|
29
|
+
spec.add_dependency "simple_form", "~> 3.2.1"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,223 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: semantic-rails-ui
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Igor Jancev
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '11.1'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '11.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.8'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.8'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest-reporters
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.1'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: gem-release
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.7'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.7'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: geminabox
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.13'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.13'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sqlite3
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rails
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 4.2.6
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 4.2.6
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: semantic-ui-sass
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.1.8
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 2.1.8
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simple_form
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 3.2.1
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 3.2.1
|
167
|
+
description: Create beautiful hrml layouts with semantic-ui, simple_form and rails
|
168
|
+
email:
|
169
|
+
- igor@masterybits.com
|
170
|
+
executables: []
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files: []
|
173
|
+
files:
|
174
|
+
- ".envrc"
|
175
|
+
- ".gitignore"
|
176
|
+
- ".ruby-version"
|
177
|
+
- ".simplecov"
|
178
|
+
- ".travis.yml"
|
179
|
+
- Gemfile
|
180
|
+
- LICENCE.txt
|
181
|
+
- README.md
|
182
|
+
- Rakefile
|
183
|
+
- app/assets/images/semantic-rails-ui/.keep
|
184
|
+
- app/assets/javascripts/semantic-rails-ui.js
|
185
|
+
- app/assets/javascripts/semantic-rails-ui/menu.coffee
|
186
|
+
- app/assets/javascripts/semantic-rails-ui/message.coffee
|
187
|
+
- app/assets/stylesheets/semantic-rails-ui.sass
|
188
|
+
- app/assets/stylesheets/semantic-rails-ui/.keep
|
189
|
+
- app/helpers/semantic_rails_ui/ui_helper.rb
|
190
|
+
- bin/console
|
191
|
+
- bin/rails
|
192
|
+
- bin/rake
|
193
|
+
- bin/setup
|
194
|
+
- config/initializers/simple_form.rb
|
195
|
+
- lib/semantic-rails-ui.rb
|
196
|
+
- lib/semantic-rails-ui/engine.rb
|
197
|
+
- lib/semantic-rails-ui/version.rb
|
198
|
+
- semantic-rails-ui.gemspec
|
199
|
+
homepage: https://github.com/igorj/semantic-rails-ui
|
200
|
+
licenses:
|
201
|
+
- MIT
|
202
|
+
metadata: {}
|
203
|
+
post_install_message:
|
204
|
+
rdoc_options: []
|
205
|
+
require_paths:
|
206
|
+
- lib
|
207
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0'
|
217
|
+
requirements: []
|
218
|
+
rubyforge_project:
|
219
|
+
rubygems_version: 2.5.1
|
220
|
+
signing_key:
|
221
|
+
specification_version: 4
|
222
|
+
summary: Rails helpers for the semantic-ui css framework
|
223
|
+
test_files: []
|