iww 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/iww/version.rb +2 -1
  3. data/lib/iww.rb +12 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 319681820f002c6ab97a7356942e375d72bb671ffab98f1ab744dc9903cdc190
4
- data.tar.gz: e84777c3a7b8ff07333fbc0d2b48e965996f772a85f16c352cf96bf874fa8c15
3
+ metadata.gz: 7974e7adfaee8bbab21f62fb3c9c4beee5f3427d44a42338f5678924d46ed032
4
+ data.tar.gz: a6011bc2c80d652631480119cd5608aea7b1125a5316ec349a5739f048362bd9
5
5
  SHA512:
6
- metadata.gz: b68c3169a0c2cd96011de71e20a055d2d8bf367c68e81006ce57f29dd85a8b5d7c77c20f9583ac06e3281054c1e0b6e4bf6da9abd0ecd9b3736b53e942e9b69a
7
- data.tar.gz: bedc89c475296a45ecf42440fe669718c61bd5afd629d5cf095b98f9fc7b314ba878fc15abfcd8dc3a2c966bdf845ac88f85e5ebabd0a81d46deeae8a54adf2f
6
+ metadata.gz: 4a4e1640acbaffb6e223d52390f5a75adef322394f043d983ef2d2d8576431f6d9e567f5ba62e31b18568d015d0733b1bc72e5973981c6a1e863687129a3810d
7
+ data.tar.gz: 5ef658055ba42b1af673697c8df022e92ebfbaef6b5de3679de0c40f6d07a837718dcb9010e4c73034f2d8ed5138e8621aced9bf2268b613da1a44a01373d683
data/lib/iww/version.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Iww
4
- VERSION = "0.1.0"
4
+ # current version.
5
+ VERSION = "0.1.1"
5
6
  end
data/lib/iww.rb CHANGED
@@ -2,19 +2,22 @@
2
2
 
3
3
  require_relative "iww/version"
4
4
 
5
+ # The Iww Module
5
6
  module Iww
6
- class Error < StandardError; end
7
+ class Error < StandardError; end # :nodoc:
7
8
 
8
9
  @@LOGO = {
10
+ black: %[https://store.iww.org/wp-content/uploads/2019/09/logo-300x300.png],
9
11
  white: %[https://www.iww.org/images/globe.svg],
10
12
  red: %[https://www.iww.org/images/iww-globe-red.svg],
13
+ cat: %[https://store.iww.org/wp-content/uploads/2019/09/sabo-cat.png],
11
14
  seal: %[https://www.iww.org/images/entitled-iww-logo-white.svg]
12
15
  }
13
-
16
+ # images
14
17
  def self.image
15
18
  @@LOGO
16
19
  end
17
-
20
+ # sign up link
18
21
  def self.join!
19
22
  %[https://redcard.iww.org/user/register]
20
23
  end
@@ -29,7 +32,7 @@ module Iww
29
32
  %[It is the historic mission of the working class to do away with capitalism. The army of prod uction must be organised, not only for everyday struggle with capitalists, but also to carry on production when capitalism shall have been overthrown. By organizing industrially we are forming the structure of the new society within the shell of the old.],
30
33
  %[Knowing, therefore, that such an organization is absolutely necessary for emancipation, we unite under the following set of guiding principles and rules:]
31
34
  ]
32
-
35
+ # I.W.W. Constitution Preamble.
33
36
  def self.preamble
34
37
  @@OLD
35
38
  end
@@ -74,6 +77,7 @@ module Iww
74
77
  "690" => "Sex Industry"
75
78
  }
76
79
 
80
+ # union divisions
77
81
  def self.divisions
78
82
  @@DIV
79
83
  end
@@ -116,18 +120,20 @@ module Iww
116
120
  "clerk" => ["660"],
117
121
  "budtender" => ["660"]
118
122
  }
119
-
123
+ # List of all jobs and divisions represented.
120
124
  def self.jobs
121
125
  [ @@MAP.keys, @@DIV.values ].flatten
122
126
  end
123
127
 
128
+ # add job +j+ to division +k+.
124
129
  def self.job k, j
125
130
  if !@@MAP.has_key? k.to_s
126
131
  @@MAP[k.to_s] = []
127
132
  end
128
133
  @@MAP[k.to_s] << j
129
134
  end
130
-
135
+
136
+ # job lookup.
131
137
  def self.[] x
132
138
  if @@MAP.has_key? x.to_s
133
139
  o = {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iww
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Olson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-18 00:00:00.000000000 Z
11
+ date: 2024-02-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A helpful ruby library to do union division lookups by job, number, or
14
14
  description.