epuber-stylus 1.1.1 → 1.2.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2d7517afd3c526f45e63854c03ed4f789e27a2cdaa6e255d717105089d2aefca
|
4
|
+
data.tar.gz: fc28d2452335c52ac502c47b5b5950be39fef7fef9bb9b66c16b1c0b73125a88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc9bb8bffa6d894909d5e22fca620c8b9df4b1e0bdaeb5ec3c44e2e8796422c33595b9d2eb513e3953d9bc89969b01928a19726ac0966ebb5834950c83926a42
|
7
|
+
data.tar.gz: 64572504e4fa703f341bf78d3b700e3bd3d8c80f31b67b7e5efadf2d9a2a578fa75411f3dd144a7e3a00bfd73a6b506be467d91e7fb7d2dd403d836e32a9a80c
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epuber-stylus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Kříž
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: execjs
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: stylus-source
|
28
|
+
name: epuber-stylus-source
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -86,9 +86,6 @@ files:
|
|
86
86
|
- spec/sprockets_spec.rb
|
87
87
|
- spec/stylus_spec.rb
|
88
88
|
- spec/support/generators/test_case.rb
|
89
|
-
- spec/support/generators/tmp/app/controllers/posts_controller.rb
|
90
|
-
- spec/support/generators/tmp/app/helpers/posts_helper.rb
|
91
|
-
- spec/support/generators/tmp/config/routes.rb
|
92
89
|
- spec/support/helpers.rb
|
93
90
|
- spec/support/matchers.rb
|
94
91
|
- spec/tilt/rails_spec.rb
|
@@ -97,7 +94,7 @@ homepage: https://github.com/epuber-io/ruby-stylus
|
|
97
94
|
licenses:
|
98
95
|
- MIT
|
99
96
|
metadata: {}
|
100
|
-
post_install_message:
|
97
|
+
post_install_message:
|
101
98
|
rdoc_options: []
|
102
99
|
require_paths:
|
103
100
|
- lib
|
@@ -112,26 +109,22 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
109
|
- !ruby/object:Gem::Version
|
113
110
|
version: '0'
|
114
111
|
requirements: []
|
115
|
-
|
116
|
-
|
117
|
-
signing_key:
|
112
|
+
rubygems_version: 3.2.17
|
113
|
+
signing_key:
|
118
114
|
specification_version: 4
|
119
115
|
summary: Ruby Stylus Compiler
|
120
116
|
test_files:
|
121
|
-
- spec/generators/assets_generator_spec.rb
|
122
|
-
- spec/generators/controller_generator_spec.rb
|
123
|
-
- spec/generators/scaffold_generator_spec.rb
|
124
|
-
- spec/import_processor_spec.rb
|
125
|
-
- spec/rails_spec.rb
|
126
|
-
- spec/runtime_spec.rb
|
127
117
|
- spec/spec_helper.rb
|
118
|
+
- spec/runtime_spec.rb
|
128
119
|
- spec/sprockets_spec.rb
|
129
120
|
- spec/stylus_spec.rb
|
130
|
-
- spec/support/generators/test_case.rb
|
131
|
-
- spec/support/generators/tmp/app/controllers/posts_controller.rb
|
132
|
-
- spec/support/generators/tmp/app/helpers/posts_helper.rb
|
133
|
-
- spec/support/generators/tmp/config/routes.rb
|
134
121
|
- spec/support/helpers.rb
|
135
122
|
- spec/support/matchers.rb
|
136
|
-
- spec/
|
123
|
+
- spec/support/generators/test_case.rb
|
124
|
+
- spec/generators/assets_generator_spec.rb
|
125
|
+
- spec/generators/scaffold_generator_spec.rb
|
126
|
+
- spec/generators/controller_generator_spec.rb
|
127
|
+
- spec/rails_spec.rb
|
137
128
|
- spec/tilt/stylus_spec.rb
|
129
|
+
- spec/tilt/rails_spec.rb
|
130
|
+
- spec/import_processor_spec.rb
|
@@ -1,58 +0,0 @@
|
|
1
|
-
class PostsController < ApplicationController
|
2
|
-
before_action :set_post, only: [:show, :edit, :update, :destroy]
|
3
|
-
|
4
|
-
# GET /posts
|
5
|
-
def index
|
6
|
-
@posts = Post.all
|
7
|
-
end
|
8
|
-
|
9
|
-
# GET /posts/1
|
10
|
-
def show
|
11
|
-
end
|
12
|
-
|
13
|
-
# GET /posts/new
|
14
|
-
def new
|
15
|
-
@post = Post.new
|
16
|
-
end
|
17
|
-
|
18
|
-
# GET /posts/1/edit
|
19
|
-
def edit
|
20
|
-
end
|
21
|
-
|
22
|
-
# POST /posts
|
23
|
-
def create
|
24
|
-
@post = Post.new(post_params)
|
25
|
-
|
26
|
-
if @post.save
|
27
|
-
redirect_to @post, notice: 'Post was successfully created.'
|
28
|
-
else
|
29
|
-
render action: 'new'
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
# PATCH/PUT /posts/1
|
34
|
-
def update
|
35
|
-
if @post.update(post_params)
|
36
|
-
redirect_to @post, notice: 'Post was successfully updated.'
|
37
|
-
else
|
38
|
-
render action: 'edit'
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
# DELETE /posts/1
|
43
|
-
def destroy
|
44
|
-
@post.destroy
|
45
|
-
redirect_to posts_url, notice: 'Post was successfully destroyed.'
|
46
|
-
end
|
47
|
-
|
48
|
-
private
|
49
|
-
# Use callbacks to share common setup or constraints between actions.
|
50
|
-
def set_post
|
51
|
-
@post = Post.find(params[:id])
|
52
|
-
end
|
53
|
-
|
54
|
-
# Only allow a trusted parameter "white list" through.
|
55
|
-
def post_params
|
56
|
-
params[:post]
|
57
|
-
end
|
58
|
-
end
|
File without changes
|