dedalus 0.2.1 → 0.2.1.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -103
  3. data/lib/dedalus/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b87e77ef8b41ec61f19f7b84e31853dc27e2c28
4
- data.tar.gz: 2a4a4ab7156a738647dea2c1e99ce60f28c03b6d
3
+ metadata.gz: e00e2edf066dd7e9ec0da378e89bc7840325443d
4
+ data.tar.gz: 9fa4c1c3d70f2904a2fe4e2bab030a57bbde0ee7
5
5
  SHA512:
6
- metadata.gz: e81bb797a355ffa07f9a7b52f148dda150645eebebd28591d5ad9498dd85b79f9fc1940c079b449e0f990e8696527790b4759f3185158c924f756db54c8c6c37
7
- data.tar.gz: 92e2de9cc81a726c45e99a6d9b6a31e8fb3426e56ad6b79808b50b0d767c3aba71ae0bc0dd685b3b67e5db2fad2c4014cbd7c10c33e61a279b36c130ae74544f
6
+ metadata.gz: cad076b89b640cf69939fe5d2e82dca8a090c670894fd155920e03c94e76902492234545756830c393aa304b28dcc34597219c2eaf84566210fed2728fb5f97b
7
+ data.tar.gz: 374fc6b68ce86b8fff01122c3fad47edbeeb6719933685e42d9523b6b2581b4dff88d563211e9cd8e3fbf655e368cb1642ae206b4ee01fca70f8199a51d7a525
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  * [Documentation](http://rubydoc.info/gems/dedalus/frames)
5
5
  * [Email](mailto:jweissman1986 at gmail.com)
6
6
 
7
- [![Code Climate GPA](https://codeclimate.com/github//dedalus/badges/gpa.svg)](https://codeclimate.com/github//dedalus)
7
+ [![Code Climate GPA](https://codeclimate.com/github/deepcerulean/dedalus/badges/gpa.svg)](https://codeclimate.com/github/deepcerulean/dedalus)
8
8
 
9
9
  ## Description
10
10
 
@@ -15,108 +15,8 @@ An incredible atomic design pattern library for [Joyce](https://github.com/deepc
15
15
  - Layout manager for Joyce apps
16
16
 
17
17
  ## Examples
18
-
19
- require 'dedalus'
20
-
21
- module PatternLibrary
22
- class ApplicationView < Joyce::ApplicationView
23
- def render
24
- composer.render!(welcome_screen)
25
- end
26
-
27
- private
28
- def welcome_screen
29
- @welcome_screen ||= WelcomeScreen.create
30
- end
31
-
32
- def composer
33
- @composer ||= Dedalus::ApplicationViewComposer.new(self)
34
- end
35
- end
36
-
37
- class ApplicationHeader < Dedalus::Organism
38
- attr_accessor :title, :subtitle
39
-
40
- def show
41
- [ heading, subheading ]
42
- end
43
-
44
- private
45
- def heading
46
- @heading ||= Elements::Heading.create(text: title)
47
- end
48
-
49
- def subheading
50
- @subheading ||= Elements::Heading.create(text: subtitle, scale: 0.75)
51
- end
52
- end
53
-
54
- class ApplicationSidebar < Dedalus::Organism
55
- has_many :library_sections
56
-
57
- def show
58
- self.library_sections.all
59
- end
60
- end
61
-
62
- class LibrarySection < Dedalus::Molecule
63
- belongs_to :application_sidebar
64
- attr_accessor :name
65
-
66
- def show
67
- Elements::Heading.create(text: name)
68
- end
69
-
70
- def height
71
- 0.03
72
- end
73
- end
74
-
75
- class ApplicationScreen < Dedalus::Template
76
- def layout
77
- [
78
- page_header, [ sidebar, yield ]
79
- ]
80
- end
81
-
82
- private
83
- def page_header
84
- @page_header ||= ApplicationHeader.create(
85
- title: 'Dedalus',
86
- subtitle: 'A Visual Pattern Library for Joyce',
87
- height: 0.1
88
- )
89
- end
90
-
91
- def sidebar
92
- @sidebar ||= ApplicationSidebar.create(
93
- library_sections: [
94
- LibrarySection.create(name: "Home"),
95
- LibrarySection.create(name: "Atoms"),
96
- LibrarySection.create(name: "Molecules"),
97
- LibrarySection.create(name: "Organisms"),
98
- LibrarySection.create(name: "Templates"),
99
- LibrarySection.create(name: "Screens")
100
- ],
101
- width: 0.3
102
- )
103
- end
104
- end
105
-
106
- class WelcomeScreen < ApplicationScreen
107
- def show
108
- layout { welcome_message }
109
- end
110
-
111
- def welcome_message
112
- @welcome_message ||= Elements::Heading.create(text: "Welcome to our Pattern Library!")
113
- end
114
- end
115
-
116
- class Application < Joyce::Application
117
- viewed_with ApplicationView
118
- end
119
- end
18
+ - Check out the pattern library app in lib/dedalus/pattern_library
19
+ - For a different sort of usage look at [Vortex](https://github.com/deepcerulean/vortex) for an example of the framework in the context of running a game
120
20
 
121
21
  ## Requirements
122
22
 
@@ -1,4 +1,4 @@
1
1
  module Dedalus
2
2
  # dedalus version
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.1.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dedalus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Weissman