a_little_less 0.2.3 → 0.2.4
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 +2 -2
- data/lib/a_little_less/version.rb +1 -1
- data/sample_app/app/controllers/sample.rb +4 -3
- data/sample_app/lib/do_some.rb +4 -0
- data/sample_app/public/policy.html +0 -0
- metadata +3 -3
- data/sample_app/lib/my_lib/my_lib.rb +0 -3
- data/sample_app/lib/my_other_lib.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20cecf8c99ade40df6c0d183ff59c03a69a44fb7
|
|
4
|
+
data.tar.gz: 3f7e0697037b1adda7ddb79b3fbaac0f941f0747
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3871bf8fc745c94e4398dfc04e5d95b8b798d23757b3f231f4f5c2aef305dd5a830dbcd54cb8b05a625858537de86478350e226748356fe21de84d015e14ea16
|
|
7
|
+
data.tar.gz: 1d9cec388b3d74fa8d6744f87e0cda739bad57ed27d9bbe953279640e7b35bb4d346842128114b7d75130cb5c94e8adc570500c905fecd2adc17d0e0d763ba02
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://badge.fury.io/rb/a_little_less)
|
|
4
4
|
[](https://codeclimate.com/github/tomlobato/little_less)
|
|
5
5
|

|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
By [Bettercall.io](https://bettercall.io/).
|
|
8
8
|
|
|
9
9
|
A web framework a little more simple.
|
|
@@ -36,7 +36,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
36
36
|
|
|
37
37
|
## Contributing
|
|
38
38
|
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/tomlobato/a_little_less.
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
## License
|
|
@@ -5,13 +5,14 @@ class Files < AlittleLess
|
|
|
5
5
|
# Helpers
|
|
6
6
|
# send_file path
|
|
7
7
|
# not_found
|
|
8
|
+
# ... see https://github.com/tomlobato/little_less/blob/master/lib/a_little_less/util.rb
|
|
8
9
|
redir_301 '/policy.html'
|
|
9
10
|
end
|
|
10
11
|
post 'upload' do
|
|
11
|
-
if DoSome.thing
|
|
12
|
-
break error_422 success: false
|
|
13
|
-
else
|
|
12
|
+
if DoSome.new.thing
|
|
14
13
|
{success: true}
|
|
14
|
+
else
|
|
15
|
+
error_422 success: false
|
|
15
16
|
end
|
|
16
17
|
end
|
|
17
18
|
get 'users' do
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: a_little_less
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Lobato
|
|
@@ -156,10 +156,10 @@ files:
|
|
|
156
156
|
- sample_app/config.ru
|
|
157
157
|
- sample_app/config/db.yml
|
|
158
158
|
- sample_app/console
|
|
159
|
-
- sample_app/lib/
|
|
160
|
-
- sample_app/lib/my_other_lib.rb
|
|
159
|
+
- sample_app/lib/do_some.rb
|
|
161
160
|
- sample_app/public/.keep
|
|
162
161
|
- sample_app/public/index.html
|
|
162
|
+
- sample_app/public/policy.html
|
|
163
163
|
homepage: https://tomlobato.github.io/a_little_less
|
|
164
164
|
licenses:
|
|
165
165
|
- MIT
|