failuregem 0.0.7.2 → 0.0.7.3
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.
- checksums.yaml +4 -4
- data/README.md +80 -0
- data/failuregem-0.0.6.gem +0 -0
- data/failuregem.gemspec +36 -0
- data/git.rb +25 -0
- data/lib/failuregem.rb +5 -8
- metadata +76 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27d8a5639dad462b1f0e366b67759cd91b54d93ff3ece2b509e81926fed2bdbf
|
4
|
+
data.tar.gz: c624d0cd1456c29c8ddb69f07228342e77b46fee368db87dadb28c244b460ec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8a156a4e1cba47acb28c852b48e3252dd737271444884c96b505ac508745db214009aa22f003443a2bcf1f2cfacdf164f4b0377f215c94941806e7927a2c3e8
|
7
|
+
data.tar.gz: 6e5b9ec3f7ce662eba4a74b74b78e1a850131dbf09fbbad61ff3e77a58ab480414761b043c1c551c59a92b57502223842c5dddc1371d1e197aaaa9060f8ef298
|
data/README.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
FAILURE-GEM
|
2
|
+
============
|
3
|
+
|
4
|
+
This is the Repository for the Failuregem.
|
5
|
+
|
6
|
+
**Failuregem** aims to be a timesafer for railsapp. It includes couple of usefull Gems to start rightaway with Rails programming.
|
7
|
+
**Failregem** Includes following GEMs:
|
8
|
+
|
9
|
+
* Bootstrap
|
10
|
+
* Jquery-rails
|
11
|
+
* Simple-Form
|
12
|
+
* Paperclip
|
13
|
+
* Active_link_to
|
14
|
+
|
15
|
+
|
16
|
+
INFO: This GEM use every App on [Failure.bl.ch](http://failure.bl.ch/)
|
17
|
+
, if you programm a new Rails App for Failure please use this GEM.
|
18
|
+
|
19
|
+
## Installation
|
20
|
+
|
21
|
+
Add it to your Gemfile:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
gem 'failuregem'
|
25
|
+
```
|
26
|
+
|
27
|
+
Run the following command to install it:
|
28
|
+
|
29
|
+
```console
|
30
|
+
bundle install
|
31
|
+
```
|
32
|
+
|
33
|
+
Finally done!
|
34
|
+
|
35
|
+
### Bootstrap
|
36
|
+
|
37
|
+
**Failuregem** has the newest Bootstrap version included but you have still import it to your application.scss
|
38
|
+
To do that you have to rewrite application.css to application.scss
|
39
|
+
|
40
|
+
```console
|
41
|
+
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
|
42
|
+
```
|
43
|
+
|
44
|
+
```scss
|
45
|
+
// Import Bootstrap in application.scss
|
46
|
+
@import "bootstrap";
|
47
|
+
```
|
48
|
+
|
49
|
+
Add Bootstrap dependencies and Bootstrap to your `application.js`:
|
50
|
+
|
51
|
+
```js
|
52
|
+
//= require jquery3
|
53
|
+
//= require popper
|
54
|
+
//= require bootstrap-sprockets
|
55
|
+
```
|
56
|
+
|
57
|
+
While `bootstrap-sprockets` provides individual Bootstrap components
|
58
|
+
for ease of debugging, you may alternatively require
|
59
|
+
the concatenated `bootstrap` for faster compilation:
|
60
|
+
|
61
|
+
```js
|
62
|
+
//= require jquery3
|
63
|
+
//= require popper
|
64
|
+
//= require bootstrap
|
65
|
+
```
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
### Simple Form
|
70
|
+
|
71
|
+
**Simple Form** can be easily integrated to the [Bootstrap](http://getbootstrap.com/).
|
72
|
+
To do that you have to use the `bootstrap` option in the install generator, like this:
|
73
|
+
|
74
|
+
```console
|
75
|
+
rails generate simple_form:install --bootstrap
|
76
|
+
```
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
### Now you good to go!
|
Binary file
|
data/failuregem.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "failuregem/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = 'failuregem'
|
8
|
+
s.version = '0.0.7.3'
|
9
|
+
s.date = '2018-10-24'
|
10
|
+
s.summary = "failuregem!"
|
11
|
+
s.description = "A simplfe Gem that includes everything you need to start with programming"
|
12
|
+
s.authors = ["Leon Vogt"]
|
13
|
+
s.email = 'leon.vogt@bl.ch'
|
14
|
+
|
15
|
+
s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
16
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
end
|
18
|
+
s.bindir = "exe"
|
19
|
+
#s.executables = s.files.grep(%r{^bin/}) { |f| f[3..-1] }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.add_runtime_dependency 'bootstrap', '~> 4.1.3', '>= 4.1.3'
|
23
|
+
s.add_runtime_dependency 'jquery-rails', '~> 4.3', '>= 4.3.1'
|
24
|
+
s.add_runtime_dependency 'simple_form', '~> 4.0', '>= 4.0.1'
|
25
|
+
s.add_runtime_dependency 'paperclip', '~> 6.1', '>= 6.1'
|
26
|
+
s.add_runtime_dependency 'active_link_to', '~> 1.0', '>= 1.0.5'
|
27
|
+
|
28
|
+
s.homepage = 'http://rubygems.org/gems/failuregem'
|
29
|
+
s.license = 'MIT'
|
30
|
+
|
31
|
+
s.add_development_dependency "bundler", "~> 1.16"
|
32
|
+
s.add_development_dependency "rake", "~> 10.0"
|
33
|
+
s.add_dependency "rails", '~> 0'
|
34
|
+
s.add_dependency "sass", '~> 0'
|
35
|
+
s.add_dependency "sass-rails", '~> 0'
|
36
|
+
end
|
data/git.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
puts
|
2
|
+
puts
|
3
|
+
puts
|
4
|
+
puts
|
5
|
+
%x(git status)
|
6
|
+
puts
|
7
|
+
puts
|
8
|
+
puts "** Let's push it to Git **"
|
9
|
+
puts
|
10
|
+
puts "Gib die Commit message ein: "
|
11
|
+
commitname = gets
|
12
|
+
puts
|
13
|
+
puts
|
14
|
+
puts "#{commitname.chomp} wird eingetragen ..."
|
15
|
+
%x(git add .)
|
16
|
+
%x(git commit -m '#{commitname.chomp}')
|
17
|
+
%x(git push)
|
18
|
+
puts
|
19
|
+
puts
|
20
|
+
puts
|
21
|
+
%x(git status)
|
22
|
+
puts
|
23
|
+
puts
|
24
|
+
puts "** Done **"
|
25
|
+
puts
|
data/lib/failuregem.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
|
-
require
|
2
|
-
require 'bootstrap'
|
3
|
-
require 'jquery-rails'
|
4
|
-
require 'simple_form'
|
5
|
-
require 'paperclip'
|
6
|
-
require 'active_link_to'
|
1
|
+
require "failuregem/version"
|
7
2
|
|
8
3
|
module Failuregem
|
9
|
-
|
10
|
-
|
4
|
+
module Rails
|
5
|
+
class Engine < ::Rails::Engine
|
6
|
+
end
|
7
|
+
end
|
11
8
|
end
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: failuregem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.7.
|
4
|
+
version: 0.0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leon Vogt
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
@@ -110,12 +110,86 @@ dependencies:
|
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 1.0.5
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: bundler
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '1.16'
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - "~>"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '1.16'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rake
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '10.0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - "~>"
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '10.0'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: rails
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - "~>"
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
type: :runtime
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: sass
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - "~>"
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
type: :runtime
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - "~>"
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: sass-rails
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
176
|
+
type: :runtime
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
113
183
|
description: A simplfe Gem that includes everything you need to start with programming
|
114
184
|
email: leon.vogt@bl.ch
|
115
185
|
executables: []
|
116
186
|
extensions: []
|
117
187
|
extra_rdoc_files: []
|
118
188
|
files:
|
189
|
+
- README.md
|
190
|
+
- failuregem-0.0.6.gem
|
191
|
+
- failuregem.gemspec
|
192
|
+
- git.rb
|
119
193
|
- lib/failuregem.rb
|
120
194
|
homepage: http://rubygems.org/gems/failuregem
|
121
195
|
licenses:
|