zwr 0.0.9 → 0.1.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
2
  SHA1:
3
- metadata.gz: 1c3f88e6cb68bba5bc7571d3a45f0e910f9fb477
4
- data.tar.gz: 472bf856500980b9d8af4cc9f7d5f062ea85b12c
3
+ metadata.gz: 26b08aa86640c5159a8375a309303fa5f537e412
4
+ data.tar.gz: 666126eec7a5e7d7c65528d9a4d18dc2cea4e7e2
5
5
  SHA512:
6
- metadata.gz: 717ef120453514a62bd63baba0bcd679741c23ddfa822b98578adf3f4f14328c73532496494f15f70e6dc67182b5de7dd1e105b64838204a66d3efbf5b60c2ca
7
- data.tar.gz: cabbec0c897ada9509ff4382050c98f6ea550a37e11c4ab5ba355e459f3554af9b569910d513d92a28321901f41d8d3bbfb29849b68a4cb11e1ae8142c1e46c9
6
+ metadata.gz: 0ceef84fbd099e21d6bec6b68fbc8f748d378c79c13ff58f81f2e94647db1a978511d90e7b2f259105432209d138a38107272488a0456a4bd27b05a2acea1582
7
+ data.tar.gz: 20dce5e9889b78d5318273a781a496ff31004917d0dae7b704b0e00644e63e243072d0ad9318522c1c5af5b2a9f0a1effcbea0dddeb75de462de571c9dfad572
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
File without changes
Binary file
Binary file
File without changes
Binary file
Binary file
File without changes
@@ -0,0 +1,16 @@
1
+ @media(max-width: $grid-float-breakpoint - 1 /*767px*/) {
2
+ .navbar-text {
3
+ margin-top: 10px;
4
+ }
5
+ .navbar-toggle {
6
+ margin-left: 16px;
7
+ }
8
+ .navbar-nav {
9
+ margin-top: 5px;
10
+ margin-bottom: 0px;
11
+ }
12
+ }
13
+
14
+ body {
15
+ background: #F6F6F6 url(/assets/bg.png) repeat-x;
16
+ }
data/lib/tasks/zwr.rake CHANGED
@@ -3,16 +3,97 @@ require 'active_support/core_ext'
3
3
  require 'rake'
4
4
 
5
5
  namespace :zwr do
6
- ASSETS_FOLDER = File.realpath( File.dirname( __FILE__ ) + '/../../assets')
7
-
8
6
  desc "installs zwr gem and features into a new app"
9
7
  task :install do
10
8
  puts "placing default favicon"
11
- FileUtils.cp "#{ASSETS_FOLDER}/favicon.ico", Rails.root.join('public')
12
-
13
- puts "removing turbolinks"
14
- `sed "s|, 'data-turbolinks-track' => true||" -i #{Rails.root.join('app/views/layouts/application.html.erb')}`
15
- `html2haml app/views/layouts/application.html.erb > app/views/layouts/application.html.haml`
9
+ FileUtils.cp "#{File.dirname( __FILE__ )}/../../app/assets/images/favicon.ico", Rails.root.join('public')
10
+ File.delete Rails.root.join('app/views/layouts/application.html.haml')
11
+ File.write(Rails.root.join('app/views/layouts/application.html.haml'),<<-FILE_CONTENT.strip_heredoc)
12
+ !!!
13
+ %html
14
+ %head
15
+ %title Tst
16
+ %meta(name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")
17
+ -# android stand alone mode
18
+ %meta(name="mobile-web-app-capable" content="yes")
19
+ %link(rel="icon" sizes="192x192" href="/assets/icon.png")
20
+ -# iOS stand alone mode
21
+ %meta(name="apple-mobile-web-app-capable" content="yes")
22
+ %meta(name="apple-mobile-web-app-status-bar-style" content="black")
23
+ %link(rel="apple-touch-icon" href="/assets/icon.png")
24
+ %link(rel="apple-touch-startup-image" href="/assets/icon.png")
25
+ -# windows 8.1, maybe mobile, maybe not
26
+ %meta(name="application-name" content="ID Pickup")
27
+ %meta(name="msapplication-navbutton-color" content="#FF3300")
28
+ %meta(name="msapplication-square150x150logo" content="assets/icon.png")
29
+ %meta(name="msapplication-square310x310logo" content="assets/icon.png")
30
+ %meta(name="msapplication-square70x70logo" content="assets/icon.png")
31
+ %meta(name="msapplication-wide310x150logo" content="assets/icon.png")
32
+ %meta(name="msapplication-TileColor" content="#FF3300")
33
+ %meta(name="msapplication-TileImage" content="assets/icon.png")
34
+ %meta(name="msapplication-tooltip" content="ID Pickup")
35
+ = stylesheet_link_tag 'application', media: 'all'
36
+ = javascript_include_tag 'application'
37
+ = csrf_meta_tags
38
+ %body
39
+ .container
40
+ %nav.navbar.navbar-static-top.navbar-inverse(role="navigation")
41
+ .container-fluid
42
+ -# Title
43
+ .navbar-header.pull-left
44
+ %a.navbar-brand(href="#")
45
+ =image_tag "logo.png", height: '20'
46
+ Tst
47
+ -# Sticky menu, on the right
48
+ #navbar-steady.navbar-header.pull-right
49
+ %ul.nav.navbar-nav.pull-left
50
+ -# Static menu items
51
+ %li.pull-left.hidden-xs
52
+ %a(href="#") Static 1
53
+ -# notice that the first to pull right will be right most!
54
+ %li.pull-right
55
+ %a(href="#") Static 2
56
+ -# Static text, like the username
57
+ %li.navbar-text.pull-right
58
+ %span.hidden-xs Welcome,
59
+ %span guest
60
+ -# following button should ALWAYS be there, unless there is no colapsable items
61
+ %button.navbar-toggle.collapsed(type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-expanded="false" aria-controls="navbar")
62
+ %span.sr-only Toggle navigation
63
+ %span.icon-bar
64
+ %span.icon-bar
65
+ %span.icon-bar
66
+ #navbar.navbar-collapse.collapse
67
+ %ul.nav.navbar-nav
68
+ %li.active
69
+ %a(href="#") Left 1
70
+ %li
71
+ %a(href="#") Left 2
72
+ %li
73
+ %a.dropdown-toggle(href="#" data-toggle="dropdown")
74
+ Drop
75
+ %span.caret
76
+ %ul.dropdown-menu(role="menu")
77
+ %li.dropdown-header Header for submenu group
78
+ %li
79
+ %a(href="#") Submenu 1
80
+ %li
81
+ %a(href="#") Submenu 2
82
+ %li
83
+ %a(href="#") Submenu 3
84
+ %li.divider
85
+ %li.dropdown-header Header for others
86
+ %li
87
+ %a(href="#") Submenu 4
88
+ %li
89
+ %a(href="#") Submenu 5
90
+ %ul.nav.navbar-nav.navbar-right
91
+ %li
92
+ %a(href="#") Right 1
93
+ %li
94
+ %a(href="#") Right 2
95
+ = yield
96
+ FILE_CONTENT
16
97
  File.delete Rails.root.join('app/views/layouts/application.html.erb')
17
98
  File.delete Rails.root.join('app/assets/javascripts/application.js')
18
99
  File.write(Rails.root.join('app/assets/javascripts/app.js.coffee'), <<-FILE_CONTENT.strip_heredoc)
@@ -35,12 +116,12 @@ namespace :zwr do
35
116
  FILE_CONTENT
36
117
  File.delete Rails.root.join('app/assets/stylesheets/application.css')
37
118
  File.write(Rails.root.join('app/assets/stylesheets/application.css.scss'),<<-FILE_CONTENT.strip_heredoc)
38
- /*
39
- *= require_tree .
40
- *= require_self
41
- */
42
- @import "bootstrap-sprockets";
43
- @import "bootstrap";
119
+ /*
120
+ *= require_self
121
+ */
122
+ @import "bootstrap-sprockets";
123
+ @import "bootstrap";
124
+ @import "zwr"
44
125
  FILE_CONTENT
45
126
  File.write(Rails.root.join('db/seeds.rb'),<<-FILE_CONTENT.strip_heredoc)
46
127
  Dir[Rails.root.join('db/seeds/*.rb')].each { |file| load file }
data/lib/zwr.rb CHANGED
@@ -1,3 +1,11 @@
1
1
  module Zwr
2
2
  require 'zwr/railtie' if defined?(Rails)
3
+
4
+ require 'zwr/version' if defined?(Rails)
5
+ module ZwrAssets
6
+ module Rails
7
+ class Engine < ::Rails::Engine
8
+ end
9
+ end
10
+ end
3
11
  end
@@ -0,0 +1,5 @@
1
+ module ZwrAssets
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
data/zwr.gemspec CHANGED
@@ -1,13 +1,15 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'zwr'
3
- s.version = '0.0.9'
3
+ s.version = '0.1.0'
4
4
  s.date = '2014-10-26'
5
5
  s.summary = "All the Zwr needs"
6
6
  s.description = "A gem in which I jam what I commonly use."
7
- s.authors = ["Zeljko"]
7
+ s.author = "Zeljko"
8
8
  s.email = 'zeljko@zwr.fi'
9
9
  s.files = `git ls-files`.split("\n") - %w(.rvmrc .gitignore)
10
10
  s.executables = ["zwr"]
11
11
  s.homepage = 'http://rubygems.org/gems/zwr'
12
12
  s.license = 'MIT'
13
+
14
+ s.add_dependency "railties", "~> 4.0", ">= 3.1"
13
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zwr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko
@@ -9,7 +9,27 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-10-26 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ - - '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '3.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '4.0'
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '3.1'
13
33
  description: A gem in which I jam what I commonly use.
14
34
  email: zeljko@zwr.fi
15
35
  executables:
@@ -17,17 +37,22 @@ executables:
17
37
  extensions: []
18
38
  extra_rdoc_files: []
19
39
  files:
40
+ - Gemfile
20
41
  - README.markdown
21
- - assets/Z-ware_logo_C_big.png
22
- - assets/favicon.ico
23
- - assets/icon.png
24
- - assets/logo.png
25
- - assets/logo_transparent.png
42
+ - app/assets/images/Z-ware_logo_C_big.png
43
+ - app/assets/images/bg.png
44
+ - app/assets/images/bg.xcf
45
+ - app/assets/images/favicon.ico
46
+ - app/assets/images/logo.png
47
+ - app/assets/images/logo.xcf
48
+ - app/assets/images/logo_transparent.png
49
+ - app/assets/stylesheets/zwr.css.scss
26
50
  - bin/zwr
27
51
  - lib/tasks/loc.rake
28
52
  - lib/tasks/zwr.rake
29
53
  - lib/zwr.rb
30
54
  - lib/zwr/railtie.rb
55
+ - lib/zwr/version.rb
31
56
  - zwr.gemspec
32
57
  homepage: http://rubygems.org/gems/zwr
33
58
  licenses:
data/assets/icon.png DELETED
Binary file
data/assets/logo.png DELETED
Binary file